LiveDebugger.LiveComponents.LiveDropdown (LiveDebugger v0.1.6)

View Source

Dropdown component that can be used to display a dropdown menu written via LiveComponents.

Summary

Functions

Closes the dropdown. You can use it when you want to close the dropdown from other component.

Attributes

  • id (:string) (required)
  • open (:boolean) (required)

Slots

  • button (required) - Accepts attributes:
    • class (:any) - Additional classes to add to the button.
    • size (:string) - Size of the button.Must be one of "sm", or "md".
    • variant (:string) - Variant of the button.Must be one of "primary", or "secondary".
  • inner_block (required)

Functions

close(id)

Closes the dropdown. You can use it when you want to close the dropdown from other component.

handle_event(binary, _, socket)

Callback implementation for Phoenix.LiveComponent.handle_event/3.

render(assigns)

Attributes

  • id (:string) (required)
  • open (:boolean) (required)

Slots

  • button (required) - Accepts attributes:
    • class (:any) - Additional classes to add to the button.
    • size (:string) - Size of the button.Must be one of "sm", or "md".
    • variant (:string) - Variant of the button.Must be one of "primary", or "secondary".
  • inner_block (required)

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.