SurfaceBulma.Dropdown (surface_bulma v0.5.1)

An interactive dropdown menu for discoverable content.

Bulma Docs - Dropdown

properties

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

Slots

  • trigger, required: true
  • default, required: true

Link to this section Summary

Link to this section Functions

Link to this function

handle_event(binary, _, socket)

Callback implementation for Phoenix.LiveComponent.handle_event/3.

Callback implementation for Phoenix.LiveComponent.mount/1.

Link to this function

render(assigns)

Callback implementation for Phoenix.LiveComponent.render/1.

Link to this function

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.