LiveFilter.Components.Select (LiveFilter v0.1.8)

Copy Markdown View Source

Dropdown select component with search support.

Renders a DaisyUI dropdown with keyboard navigation, search filtering, and proper accessibility attributes.

Required Assigns

  • filter - The Filter struct containing value 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)

  • select_option_value - %{"id" => filter_id, "selected" => value}
  • select_search - %{"id" => filter_id, "value" => search}

Example

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

Summary

Functions

Renders a dropdown select component.

Functions

render(assigns)

Renders a dropdown select 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 %{}.