Filtering lists, tables, etc (search)

Hide elements based on match with data attributes.

Attribute Description Example value
js-filter-container Container of what should be filterable, has to contain unique id. unique_id
js-filter-data Elements inside item that contain data which should be used in the filter.
js-filter-input The input for a specific container, has to contain same id as parent. unique_id

Parameters (Blade)

Key Default value Type Available values Description
id string - Top container that contains items that shoiudld be filterable.
string - Item that should be filterable.
string - Child of item that contains data that should be considered when filtering.
Matching id of container string - An input field that will be used to filter a container
string - The DOM id of the component.
[] array - Array containing wrapping classes array
[] array - Array containing keys and values rendered as attributes