Dialog
To open a dialog, call the explosed method open
on the dialog reference.
The method optionally accepts a query selector, which will be used to set inert=true
on given element (if found in the DOM).
The dialog element will be teleported to the body
element.
Props
Name
Type
title
string
Dialog title
dismissable
boolean
If set to true
, the dialog can be closed by clicking outside or by pressing
Esacpe. Otherwise, the dialog can to be closed explicitly.
Events
Name
Payload
open
Fired after the dialog had been opened
close
Fired after the dialog has been closed
Slots
Name
Payload
default
dialog body
header
Optional dialog header
default
Optional dialog footer