View Source SaladUI.AlertDialog (SaladUI v0.13.0)
Implement of Alert Dialog components
Summary
Functions
Alert Dialog component
Render
Render
Render
Render
Render
Hide alert dialog
Show alert dialog
Functions
Alert Dialog component
Examples:
<.alert_dialog>
<.alert_dialog_trigger aschild>
<button variant="outline">show dialog</button>
</.alert_dialog_trigger>
<.alert_dialog_content>
<.alert_dialog_header>
<.alert_dialog_title>are you absolutely sure?</.alert_dialog_title>
<.alert_dialog_description>
this action cannot be undone. this will permanently delete your
account and remove your data from our servers.
</.alert_dialog_description>
</.alert_dialog_header>
<.alert_dialog_footer>
<.alert_dialog_cancel>cancel</.alert_dialog_cancel>
<.alert_dialog_action>continue</.alert_dialog_action>
</.alert_dialog_footer>
</.alert_dialog_content>
</.alert_dialog>
Attributes
id
(:string
) (required) - Id to identify alert dialog, alert_dialog_trigger use this id to trigger show dialog.open
(:boolean
) - Defaults tofalse
.
Slots
inner_block
(required)
Render
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Render
Attributes
builder
(:map
) (required) - Builder instance for Alert Dialog.class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Render
Attributes
builder
(:map
) (required) - Builder instance for alert dialog.class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Render
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Render
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Render
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Render
Attributes
builder
(:map
) (required) - Builder instance for alert dialog.class
(:string
) - Defaults tonil
.
Slots
inner_block
(required)
Hide alert dialog
Show alert dialog