SurfaceBulma.Modal.Card (surface_bulma v0.6.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.
Pressing the "Escape" key will cause the close_event
to fire.
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: %{name: "modal_close", target: :live_view} - What event to emit on close event
Summary
Functions
Callback implementation for Surface.Component.render/1
.
Functions
Link to this function
render(assigns)
Callback implementation for Surface.Component.render/1
.