LightningWeb.Components.Modal (Lightning v2.15.0-pre5)
View SourceA 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.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)titlesubtitlefooter- Accepts attributes:class(:string)
Attributes
- Global attributes are accepted.
Slots
subtitleinner_block(required)