What's new
This PR adds 2 new components for filters.
TFiltersSection: Shows active filters and allows editing/removal of filters.
TFiltersDropdown: Used by TFiltersSection that shows in-active filters to add inside active section, normally this will not be used independently in any current use case.
Props: these are used by children filters, not the TFiltersSection
item-label: Used by child components to display their names in dropdown.
dropdown-section: Used to categories filters in dropdown.
default-[value]: Any filter with a prop named default will force that filter to be visible by default and have no delete button.
Sample Screenshot
Some important points
This component will auto add a delete button to any filter that has a slot named footer.
To maintain the original "Add order" for filters, it goes through all slot items twice, once for dropdown filter and once of visible filters that appear after added.
Filters UX Figma
What's new This PR adds 2 new components for filters.
Syntax
Props: these are used by children filters, not the
TFiltersSection
item-label
: Used by child components to display their names in dropdown.dropdown-section
: Used to categories filters in dropdown.default-[value]
: Any filter with a prop named default will force that filter to be visible by default and have no delete button.Sample Screenshot
Some important points
footer
.