View Source LightningWeb.Components.Modal (Lightning v2.10.4)
A modal component that can be used to display a modal on the page.
This currently isn't used anywhere but should be used in the future to replace the existing modal implementations.
Summary
Functions
Attributes
id
(:string
) (required)show
(:boolean
) - Defaults tofalse
.with_frame
(:boolean
) - Defaults totrue
.target
(:any
) - Defaults tonil
.position
(:string
) - Defaults to"fixed inset-0"
.width
(:string
) - Defaults to"max-w-3xl"
.close_on_click_away
(:boolean
) - Defaults totrue
.close_on_keydown
(:boolean
) - Defaults totrue
.on_close
(Phoenix.LiveView.JS
) - Defaults to%Phoenix.LiveView.JS{ops: []}
.on_open
(Phoenix.LiveView.JS
) - Defaults to%Phoenix.LiveView.JS{ops: []}
.- Global attributes are accepted.
Slots
inner_block
(required)title
subtitle
footer
- Accepts attributes:class
(:string
)
Attributes
class
(:any
) - Defaults to""
.
Slots
inner_block
(required)
Functions
Attributes
id
(:string
) (required)show
(:boolean
) - Defaults tofalse
.with_frame
(:boolean
) - Defaults totrue
.target
(:any
) - Defaults tonil
.position
(:string
) - Defaults to"fixed inset-0"
.width
(:string
) - Defaults to"max-w-3xl"
.close_on_click_away
(:boolean
) - Defaults totrue
.close_on_keydown
(:boolean
) - Defaults totrue
.on_close
(Phoenix.LiveView.JS
) - Defaults to%Phoenix.LiveView.JS{ops: []}
.on_open
(Phoenix.LiveView.JS
) - Defaults to%Phoenix.LiveView.JS{ops: []}
.- Global attributes are accepted.
Slots
inner_block
(required)title
subtitle
footer
- Accepts attributes:class
(:string
)