Skip to content

@serenity-is/corelib / ConfirmOptions

Interface: ConfirmOptions

Additional options for confirm dialog

Hierarchy

Table of contents

Properties

Properties

bootstrap

• Optional bootstrap: boolean

True to use Bootstrap dialogs even when jQuery UI present, default is based on `Q.Config.bootstrapMessages

Inherited from

CommonDialogOptions.bootstrap

Defined in

src/q/dialogs.ts:50


buttons

• Optional buttons: DialogButton[]

List of buttons to show on the dialog

Inherited from

CommonDialogOptions.buttons

Defined in

src/q/dialogs.ts:46


cancelButton

• Optional cancelButton: string | boolean

Title of the CANCEL button, or false to hide the Cancel button. Default is value of local text: "Dialogs.NoButton"

Defined in

src/q/dialogs.ts:378


dialogClass

• Optional dialogClass: string

Dialog css class. Default is based on the message dialog type

Inherited from

CommonDialogOptions.dialogClass

Defined in

src/q/dialogs.ts:44


htmlEncode

• Optional htmlEncode: boolean

HTML encode the message, default is true

Inherited from

CommonDialogOptions.htmlEncode

Defined in

src/q/dialogs.ts:40


modalClass

• Optional modalClass: string

Class to use for the modal element for Bootstrap dialogs

Inherited from

CommonDialogOptions.modalClass

Defined in

src/q/dialogs.ts:48


noButton

• Optional noButton: string | boolean

Title of the NO button, or false to hide the No button. Default is value of local text: "Dialogs.NoButton"

Defined in

src/q/dialogs.ts:376


onCancel

• Optional onCancel: () => void

Type declaration

▸ (): void

Event handler for cancel button click

Returns

void

Defined in

src/q/dialogs.ts:380


onClose

• Optional onClose: (result: string) => void

Type declaration

▸ (result): void

Event handler that is called when dialog is closed

Parameters
Name Type
result string
Returns

void

Inherited from

CommonDialogOptions.onClose

Defined in

src/q/dialogs.ts:36


onNo

• Optional onNo: () => void

Type declaration

▸ (): void

Event handler for no button click

Returns

void

Defined in

src/q/dialogs.ts:382


onOpen

• Optional onOpen: () => void

Type declaration

▸ (): void

Event handler that is called when dialog is opened

Returns

void

Inherited from

CommonDialogOptions.onOpen

Defined in

src/q/dialogs.ts:34


preWrap

• Optional preWrap: boolean

Wrap the message in a <pre> element, so that line endings are preserved, default is true

Inherited from

CommonDialogOptions.preWrap

Defined in

src/q/dialogs.ts:42


result

• Optional result: string

The result code of the button used to close the dialog is returned via this variable in the options object

Inherited from

CommonDialogOptions.result

Defined in

src/q/dialogs.ts:52


title

• Optional title: string

Dialog title

Inherited from

CommonDialogOptions.title

Defined in

src/q/dialogs.ts:38


yesButton

• Optional yesButton: string | boolean

Title of the Yes button, or false to hide the Yes button. Default is value of local text: "Dialogs.YesButton"

Defined in

src/q/dialogs.ts:372


yesButtonClass

• Optional yesButtonClass: string

CSS class for the Yes button.

Defined in

src/q/dialogs.ts:374