SurfaceBulma.Modal.Card (surface_bulma v0.2.0)
The 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 card.
Slots
- header - Header content, use via Modal.Header.
- footer - Footer content, use via Modal.Footer.
- default, required: true - Default slot.
Events
- close_event, default: "modal_close" - What event to emit on close event.
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/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(assigns)
Callback implementation for Phoenix.LiveComponent.render/1
.
Link to this function
update(assigns, socket)
Callback implementation for Phoenix.LiveComponent.update/2
.