@serenity-is/corelib / ConfirmDialogOptions

Interface: ConfirmDialogOptions

Defined in: src/base/dialogs.tsx:999

Additional options for confirm dialog

Extends

Properties

autoDispose?

optional autoDispose: boolean

Defined in: src/base/dialogs.tsx:36

Auto dispose dialog on close, default is true

Inherited from

MessageDialogOptions.autoDispose


autoOpen?

optional autoOpen: boolean

Defined in: src/base/dialogs.tsx:38

True to auto open dialog

Inherited from

MessageDialogOptions.autoOpen


backdrop?

optional backdrop: 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

MessageDialogOptions.backdrop


buttons?

optional buttons: DialogButton[]

Defined in: src/base/dialogs.tsx:42

List of buttons to show on the dialog

Inherited from

MessageDialogOptions.buttons


cancelButton?

optional cancelButton: boolean

Defined in: src/base/dialogs.tsx:1001

True to also add a cancel button


centered?

optional centered: boolean

Defined in: src/base/dialogs.tsx:44

Vertically center modal

Inherited from

MessageDialogOptions.centered


closeButton?

optional closeButton: boolean

Defined in: src/base/dialogs.tsx:46

Show close button, default is true

Inherited from

MessageDialogOptions.closeButton


closeOnEscape?

optional closeOnEscape: boolean

Defined in: src/base/dialogs.tsx:48

Close dialog on escape key. Default is true for message dialogs.

Inherited from

MessageDialogOptions.closeOnEscape


dialogClass?

optional dialogClass: 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?

optional element: 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

MessageDialogOptions.element


fade?

optional fade: boolean

Defined in: src/base/dialogs.tsx:54

Enable / disable animation. Default is false for message dialogs, true for other dialogs

Inherited from

MessageDialogOptions.fade


fullScreen?

optional fullScreen: 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?

optional htmlEncode: boolean

Defined in: src/base/dialogs.tsx:902

Deprecated

HTML encode the message, default is true

Inherited from

MessageDialogOptions.htmlEncode


optional modal: 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

MessageDialogOptions.modal


onCancel()?

optional onCancel: () => void

Defined in: src/base/dialogs.tsx:1003

Event handler for cancel button click

Returns

void


onClose()?

optional onClose: (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

MessageDialogOptions.onClose


onNo()?

optional onNo: () => void

Defined in: src/base/dialogs.tsx:1005

Event handler for no button click

Returns

void


onOpen()?

optional onOpen: (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

MessageDialogOptions.onOpen


preferBSModal?

optional preferBSModal: boolean

Defined in: src/base/dialogs.tsx:64

Prefer Bootstrap modals to jQuery UI dialogs when both are available

Inherited from

MessageDialogOptions.preferBSModal


preferPanel?

optional preferPanel: boolean

Defined in: src/base/dialogs.tsx:66

Prefer Panel even when Modal / jQuery UI is available

Inherited from

MessageDialogOptions.preferPanel


preWrap?

optional preWrap: 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

MessageDialogOptions.preWrap


providerOptions()?

optional providerOptions: (type, opt) => any

Defined in: src/base/dialogs.tsx:68

Callback to get options specific to the dialog provider type

Parameters

type

DialogProviderType

opt

DialogOptions

Returns

any

Inherited from

MessageDialogOptions.providerOptions


scrollable?

optional scrollable: boolean

Defined in: src/base/dialogs.tsx:70

Scrollable, sets content of the modal to scrollable, only for Bootstrap

Inherited from

MessageDialogOptions.scrollable


size?

optional size: "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

MessageDialogOptions.size


title?

optional title: string

Defined in: src/base/dialogs.tsx:74

Dialog title

Inherited from

MessageDialogOptions.title


width?

optional width: number

Defined in: src/base/dialogs.tsx:76

Only used for jQuery UI dialogs for backwards compatibility

Inherited from

MessageDialogOptions.width