@serenity-is/corelib / DialogOptions
Interface: DialogOptions
Defined in: src/base/dialogs.tsx:34
Options that apply to all dialog types
Extended by
Properties
autoDispose?
optionalautoDispose:boolean
Defined in: src/base/dialogs.tsx:36
Auto dispose dialog on close, default is true
autoOpen?
optionalautoOpen:boolean
Defined in: src/base/dialogs.tsx:38
True to auto open dialog
backdrop?
optionalbackdrop:boolean|"static"
Defined in: src/base/dialogs.tsx:40
Backdrop type, static to make it modal, e.g. can't be closed by clicking outside
buttons?
optionalbuttons:DialogButton[]
Defined in: src/base/dialogs.tsx:42
List of buttons to show on the dialog
centered?
optionalcentered:boolean
Defined in: src/base/dialogs.tsx:44
Vertically center modal
closeButton?
optionalcloseButton:boolean
Defined in: src/base/dialogs.tsx:46
Show close button, default is true
closeOnEscape?
optionalcloseOnEscape:boolean
Defined in: src/base/dialogs.tsx:48
Close dialog on escape key. Default is true for message dialogs.
dialogClass?
optionaldialogClass:string
Defined in: src/base/dialogs.tsx:50
CSS class to use for all dialog types. Is added to the top ui-dialog, panel or modal element
element?
optionalelement:HTMLElement|ArrayLike<HTMLElement> | (element) =>void
Defined in: src/base/dialogs.tsx:52
Dialog content/body element, or callback that will populate the content element
fade?
optionalfade:boolean
Defined in: src/base/dialogs.tsx:54
Enable / disable animation. Default is false for message dialogs, true for other dialogs
fullScreen?
optionalfullScreen:boolean|"sm-down"|"md-down"|"lg-down"|"xl-down"|"xxl-down"
Defined in: src/base/dialogs.tsx:56
Sets one of modal-fullscreen{-...-down} classes. Only used for bootstrap modals
modal?
optionalmodal:boolean
Defined in: src/base/dialogs.tsx:58
Modal option for jQuery UI dialog compatibility only. Not to be confused with Bootstrap modal.
onClose()?
optionalonClose: (result,e?) =>void
Defined in: src/base/dialogs.tsx:62
Event handler that is called when dialog is closed
Parameters
result
string
e?
Event
Returns
void
onOpen()?
optionalonOpen: (e?) =>void
Defined in: src/base/dialogs.tsx:60
Event handler that is called when dialog is opened
Parameters
e?
Event
Returns
void
preferBSModal?
optionalpreferBSModal:boolean
Defined in: src/base/dialogs.tsx:64
Prefer Bootstrap modals to jQuery UI dialogs when both are available
preferPanel?
optionalpreferPanel:boolean
Defined in: src/base/dialogs.tsx:66
Prefer Panel even when Modal / jQuery UI is available
providerOptions()?
optionalproviderOptions: (type,opt) =>any
Defined in: src/base/dialogs.tsx:68
Callback to get options specific to the dialog provider type
Parameters
type
opt
DialogOptions
Returns
any
scrollable?
optionalscrollable:boolean
Defined in: src/base/dialogs.tsx:70
Scrollable, sets content of the modal to scrollable, only for Bootstrap
size?
optionalsize:"sm"|"md"|"lg"|"xl"
Defined in: src/base/dialogs.tsx:72
Size. Default is null for (500px) message dialogs, lg for normal dialogs
title?
optionaltitle:string
Defined in: src/base/dialogs.tsx:74
Dialog title
width?
optionalwidth:number
Defined in: src/base/dialogs.tsx:76
Only used for jQuery UI dialogs for backwards compatibility