cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Filtered by() data in FilterBar

0 Kudos

Hello!

I'm trying to Implement the FilterBar. When clicked on "Hide Filter Bar", I want to display "Filtered by(): Filter 1, Filter 2, Filter 3". Also, when I add some data to the Filters, I'm not getting the numbers of filters() used on the filter bar.

Accepted Solutions (0)

Answers (1)

Answers (1)

ericci
Active Contributor
0 Kudos

If this is something that is not implemented directly by FilterBar you have 2 options:

  1. Extend (don't clone, don't create from scratch but extend every standard component when possible) the FilterBar component to add your custom behavior
  2. Hook to FilterBar events and show/hide that information when you click on the "Hide Filter Bar". JS does not have public/protected methods so you can access to everything inside the FilterBar with the event.getSource() or with this.getView().byId("YOUR_FILTER_BAR_ID_IN_THE_VIEW"). It means that you know how many filters are inside it and what values the user has inputted into them.