LiveFilter.Components.MultiSelect (LiveFilter v0.1.8)

Copy Markdown View Source

Multi-select dropdown component with search support.

Renders a DaisyUI dropdown with checkboxes, keyboard navigation, search filtering, and a "Clear all" action.

Required Assigns

  • filter - The Filter struct containing value (list) and config
  • myself - The parent LiveComponent's @myself for event targeting

Optional Assigns

  • select_search - Map of filter_id => search string for filtering options

Events (handled by parent)

  • toggle_multi_value - %{"id" => filter_id, "value" => value}
  • select_search - %{"id" => filter_id, "value" => search}
  • clear_filter_value - %{"id" => filter_id}

Example

<LiveFilter.Components.MultiSelect.render
  filter={@filter}
  myself={@myself}
  select_search={@select_search}
/>

Summary

Functions

Renders a multi-select dropdown component.

Functions

render(assigns)

Renders a multi-select dropdown component.

Attributes

  • filter (:map) (required) - The Filter struct.
  • myself (:any) (required) - The parent LiveComponent's @myself.
  • select_search (:map) - Map of filter_id => search string. Defaults to %{}.