@serenity-is/corelib / ConfirmDialogOptions
Interface: ConfirmDialogOptions
Defined in: src/base/dialogs.tsx:999
Additional options for confirm dialog
Extends
Properties
autoDispose?
optionalautoDispose:boolean
Defined in: src/base/dialogs.tsx:36
Auto dispose dialog on close, default is true
Inherited from
MessageDialogOptions.autoDispose
autoOpen?
optionalautoOpen:boolean
Defined in: src/base/dialogs.tsx:38
True to auto open dialog
Inherited from
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
Inherited from
buttons?
optionalbuttons:DialogButton[]
Defined in: src/base/dialogs.tsx:42
List of buttons to show on the dialog
Inherited from
cancelButton?
optionalcancelButton:boolean
Defined in: src/base/dialogs.tsx:1001
True to also add a cancel button
centered?
optionalcentered:boolean
Defined in: src/base/dialogs.tsx:44
Vertically center modal
Inherited from
closeButton?
optionalcloseButton:boolean
Defined in: src/base/dialogs.tsx:46
Show close button, default is true
Inherited from
MessageDialogOptions.closeButton
closeOnEscape?
optionalcloseOnEscape:boolean
Defined in: src/base/dialogs.tsx:48
Close dialog on escape key. Default is true for message dialogs.
Inherited from
MessageDialogOptions.closeOnEscape
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
Inherited from
MessageDialogOptions.dialogClass
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
Inherited from
fade?
optionalfade:boolean
Defined in: src/base/dialogs.tsx:54
Enable / disable animation. Default is false for message dialogs, true for other dialogs
Inherited from
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
Inherited from
MessageDialogOptions.fullScreen
htmlEncode?
optionalhtmlEncode:boolean
Defined in: src/base/dialogs.tsx:902
Deprecated
HTML encode the message, default is true
Inherited from
MessageDialogOptions.htmlEncode
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.
Inherited from
onCancel()?
optionalonCancel: () =>void
Defined in: src/base/dialogs.tsx:1003
Event handler for cancel button click
Returns
void
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
Inherited from
onNo()?
optionalonNo: () =>void
Defined in: src/base/dialogs.tsx:1005
Event handler for no button click
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
Inherited from
preferBSModal?
optionalpreferBSModal:boolean
Defined in: src/base/dialogs.tsx:64
Prefer Bootstrap modals to jQuery UI dialogs when both are available
Inherited from
MessageDialogOptions.preferBSModal
preferPanel?
optionalpreferPanel:boolean
Defined in: src/base/dialogs.tsx:66
Prefer Panel even when Modal / jQuery UI is available
Inherited from
MessageDialogOptions.preferPanel
preWrap?
optionalpreWrap:boolean
Defined in: src/base/dialogs.tsx:904
Wrap the message in a <pre> element, so that line endings are preserved, default is true
Inherited from
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
Returns
any
Inherited from
MessageDialogOptions.providerOptions
scrollable?
optionalscrollable:boolean
Defined in: src/base/dialogs.tsx:70
Scrollable, sets content of the modal to scrollable, only for Bootstrap
Inherited from
MessageDialogOptions.scrollable
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
Inherited from
title?
optionaltitle:string
Defined in: src/base/dialogs.tsx:74
Dialog title
Inherited from
width?
optionalwidth:number
Defined in: src/base/dialogs.tsx:76
Only used for jQuery UI dialogs for backwards compatibility