View Source AlertDialog (LiveViewUI v0.0.1)
A simple alert dialog component.
Summary
Functions
Attributes
variant
(:string
) - Defaults to"default"
.class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Attributes
id
(:string
) (required)class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Renders an alert dialog
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
trigger
(:string
) (required)variant
(:string
) - Defaults to"default"
.size
(:string
) - Defaults to"default"
.class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Functions
Attributes
variant
(:string
) - Defaults to"default"
.class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Attributes
id
(:string
) (required)class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Renders an alert dialog
Examples
<.dialog :let={
%{
root: root,
trigger: trigger,
backdrop: backdrop,
content: content,
title: title,
description: description,
actions: actions
}
}>
<.trigger trigger={trigger}>Open</.trigger>
<.content root={root} backdrop={backdrop} content={content}>
<.header>
<.title title={title}>Are you absolutely sure?</.title>
<.description description={description}>
This action cannot be undone. This will permanently delete your account
and remove your data from our servers.
</.description>
</.header>
<.footer>
<.cancel actions={actions}>Cancel</.cancel>
<.action>Continue</.action>
</.footer>
</.content>
</.dialog>
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Attributes
trigger
(:string
) (required)variant
(:string
) - Defaults to"default"
.size
(:string
) - Defaults to"default"
.class
(:any
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)