View Source PetalComponents.Modal (petal_components v1.2.9)
Link to this section Summary
Functions
Attributes
id
(:string
) - modal id. Defaults to"modal"
.hide
(:boolean
) - modal is hidden. Defaults tofalse
.title
(:string
) - modal title. Defaults tonil
.close_modal_target
(:string
) - close_modal_target allows you to target a specific live component for the close event to go to. eg: close_modal_target={@myself}. Defaults tonil
.max_width
(:string
) - modal max width. Defaults to"md"
. Global attributes are accepted.
Slots
inner_block
Link to this section Functions
attributes
Attributes
id
(:string
) - modal id. Defaults to"modal"
.hide
(:boolean
) - modal is hidden. Defaults tofalse
.title
(:string
) - modal title. Defaults tonil
.close_modal_target
(:string
) - close_modal_target allows you to target a specific live component for the close event to go to. eg: close_modal_target={@myself}. Defaults tonil
.max_width
(:string
) - modal max width. Defaults to"md"
. Global attributes are accepted.
slots
Slots
inner_block