Slab.FilterLive (Slab v1.0.0)

Copy Markdown View Source

The stateful core of Slab.filter/1 text inputs.

This live component is an internal implementation detail — render filter inputs with Slab.filter/1, which validates attributes at compile time and forwards them here. On change it patches the filter[field] query param; the table (in query mode) and the parent LiveView react through handle_params/3.

Select and multiselect filter types are rendered by PhoenixSelect.select/1 in URL mode and never reach this module.