SurfaceBulma.Modal (surface_bulma v0.2.1)

The non-card modal, with various configuration options. The modal is a stateless component and as such requires outside handling of whether or not the modal should be shown.

This component is currently not usable with javascript control of if component should be shown or not.

Properties

  • show :boolean, default: false - If modal should be shown or not, defaults to false.
  • show_close_button :boolean, default: true - If modal should show close button at top right of darkened background.

Slots

  • default, required: true

Events

  • close_button_event - The event the modal emits if you click the close button, silently ignored if show close button is not set.

Link to this section Summary

Link to this section Functions

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.