ornamentum icon indicating copy to clipboard operation
ornamentum copied to clipboard

Checkbox for (un-)checking alloptions in filter dropdown

Open pschild opened this issue 5 years ago • 4 comments

Hi guys!

The filter dropdown shows a list of all unique values, having a checkbox to be able to include or exclude the corresponding option in your filter (when using dropdownFilterShowOptionSelectCheckBox). When you have a lot of options shown in that list, it would be awesome if we have a single checkbox to check (or uncheck) all visible options (maybe filtered when using dropdownFilterSearchable).

Is it possible to build this feature in?

Best regards, pschild

pschild avatar Oct 16 '19 09:10 pschild

Hi Pschild,

If you do not select any, by default it shows all the data without applying filtration hence, I don't see a value of adding a select all checkbox as it will become an overhead of explicitly triggering complex filter expressions to do the same thing.

Select all === do not apply filter === select none in Ornamentum

Also, you can use a clear button that comes handy to reset filtration.

Thanks, Yohan

yohangz avatar Oct 17 '19 18:10 yohangz

Hi Yohan,

thanks for your feedback! I get your point that "all checkboxes unchecked" equals "all checkboxes checked" and in this regard a "Check all/none" wouldn't make much sense. Nevertheless, in my current project I have a case where it definitely does. Let me give you an example and explain my situation. I took the screenshots from Google Sheets, which offers this functionality: example 1: I have a list of hundrets of zip codes. 2: I want to see all zip codes having "45" included, so I open the filter overlay and type in "45" into the search field. The list gets filtered by the given search term. Now I click "Select all" to check all filtered options. I click OK... 3: ...and see all zip codes containing "45".

If I would not have the possibility to "Select all", I would have had to select zip code by zip code separately, which possibly could mean a lot of clicks ;-) Additionally, using Text Box Filtering instead of Dropdown Filtering isn't an option for me in this case, in order to be as flexible as possible.

So I just want to make sure you got me right ;-) Maybe you give it another thought?

Cheers, pschild

pschild avatar Oct 18 '19 11:10 pschild

Hi Pschild,

Great explanation. I will consider this as a feature request. However, I'm working on a major performance update + state management architecture change atm for v9.0.0.

Current feature priority: https://github.com/yohangz/ornamentum/blob/master/docs/CHANGELOG.md#upcoming-features

Thanks, Yohan

yohangz avatar Oct 23 '19 08:10 yohangz

Nice I also need this feature! :) When will this be implemented? Or will you never implement it?

Calle-Lo avatar Apr 29 '20 09:04 Calle-Lo