All elements that have more than one child element, can be filtered.
How To Create a Search Field:
Below, we have created a filterable list view:
Tip: Use a placeholder to specify a short hint that describes the expected value of the search field:
The text inside each child element is the actual text that is used for filtering (like "Adele" or "B" for "Billy"). However, if you want to filter the search to a custom filter text instead, you can add the data-filtertext attribute to any child element:
If you use the data-filtertext attribute on an element, the original text/content of that particular element is ignored for filtering (In the example above, you are no longer able to search for the list item "Adele". You can only find Adele by typing the keywords "f, a, v or fav".) |
Filter Collapsible Lists
How to filter a collapsible set of lists.
Filter Tables
How to filter a table.
Filter <div> elements
How to filter a <div> element containing child <p> elements.