SurfaceBulma.Dropdown (surface_bulma v0.6.0)
An interactive dropdown menu for discoverable content.
Properties
id :string, required: true - The id of the live component (required by LiveView for stateful components).
active :boolean - Is always open
hoverable :boolean - Activates on hover
right_aligned :boolean, default: false - Left/Right aligned (left by default)
drop_up :boolean, default: false - Menu appears above/below (below by default)
Slots
- trigger, required: true
- default, required: true
Summary
Functions
Callback implementation for Phoenix.LiveComponent.handle_event/3
.
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.
Callback implementation for Phoenix.LiveComponent.update/2
.
Functions
handle_event(binary, _, socket)
Callback implementation for Phoenix.LiveComponent.handle_event/3
.
mount(socket)
Callback implementation for Phoenix.LiveComponent.mount/1
.
render(assigns)
Callback implementation for Phoenix.LiveComponent.render/1
.
update(assigns, socket)
Callback implementation for Phoenix.LiveComponent.update/2
.