we are trying to build a pretty typical filter for a list of items (in a Mobile app) which does also allow "Select All" for that particular filter category. The added issue we have though is that this filter may contain a very long list of items (let's say 200 names, for example). To help with that we have decided to be able to "sub-filter" the list using a textbox. What I am wondering now is how to best make this work with the "Select All" toggle.
So let's say that the "Select All" is not toggled, the user goes to the filter and sees a list of 200 names. He writes a few letter in the search box and the list of 200 now becomes a list of 5, he then toggle "select all" -> I think this should ONLY select all those remaining 5 names.
Now they remove the text in the box, the 5 names stay selected BUT I believe the select all should now be OFF, as many other names are present and not selected.
The bit I am not sure: Let's say the user, from the long list, selects 5 names, then they add something in the search box and the list of names is reduced down to 3 names, which are already selected as they are part of the 5, should the select all toggle be ON or OFF? I believe it should be ON, if we follow the principle that the toggle follow the status of the currently filtered list, but I am open to ideas... Maybe a list of items as a filter which in itself has a filter has a better way to be designed?