SupabaseSurface.Components.DropdownItem (supabase_surface v0.3.0)
Properties
- to :string - When provided, the dropdown item will serve as a link using LivePatch for method :get and a <button /> for :post.
- method :atom, default: :get - The method to use when used as a link.
- opts :keyword, default: [] - Additional options passed to the component.
- class :css_class - Additional CSS class(es) to apply to the dropdown item.
Slots
- default, required: true
- icon, required: false - An optional icon for this dropdown item. See DropdownItemIcon..
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.update/2
.
Link to this section Functions
Link to this function
mount(socket)
Callback implementation for Phoenix.LiveComponent.mount/1
.
Link to this function
render_content(assigns)
Link to this function
update(assigns, socket)
Callback implementation for Phoenix.LiveComponent.update/2
.