DialogOptions
Defined in: components/dialog.ts:8
Options for dialog.
Properties
Section titled “Properties”header?
Section titled “header?”
optionalheader?:Slot
Defined in: components/dialog.ts:10
Slot rendered in the styled header bar.
footer?
Section titled “footer?”
optionalfooter?:Slot
Defined in: components/dialog.ts:12
Slot rendered in the styled footer bar.
attrs?
Section titled “attrs?”
optionalattrs?:string
Defined in: components/dialog.ts:14
Aberdeen attr/style string applied to the dialog panel. A surface — pass modifier classes (e.g. ".warning") to recolour it.
headerAttrs?
Section titled “headerAttrs?”
optionalheaderAttrs?:string
Defined in: components/dialog.ts:16
Aberdeen attr/style string applied to the header bar.
footerAttrs?
Section titled “footerAttrs?”
optionalfooterAttrs?:string
Defined in: components/dialog.ts:18
Aberdeen attr/style string applied to the footer bar.
contentAttrs?
Section titled “contentAttrs?”
optionalcontentAttrs?:string
Defined in: components/dialog.ts:20
Aberdeen attr/style string applied to the scrollable content <div>.
allowCancel?
Section titled “allowCancel?”
optionalallowCancel?:boolean
Defined in: components/dialog.ts:26
Allow closing via Esc or clicking the backdrop. Defaults to true.
May be changed on a proxied options object while the dialog is open
(e.g. lock when form data is dirty).
cancelWithScope?
Section titled “cancelWithScope?”
optionalcancelWithScope?:boolean
Defined in: components/dialog.ts:31
When set to true (default) the model will be destroyed when the dialog()-calling
scope is destroyed.
content?
Section titled “content?”
optionalcontent?:Slot<[() =>void]>
Defined in: components/dialog.ts:37
Dialog body. A Slot whose draw-function receives a close() function
— call it to dismiss the dialog programmatically. (A plain string renders as
rich text.)
onClose?
Section titled “onClose?”
optionalonClose?: () =>void
Defined in: components/dialog.ts:43
Called when the dialog closes for any reason (explicit close(), Esc, or
backdrop click). Useful when you want a side-effect on close but don’t need
the Promise returned by dialog.
Returns
Section titled “Returns”void