@serenity-is/corelib / AlertOptions
Interface: AlertOptions
Additional options for Alert dialogs
Hierarchy
-
↳
AlertOptions
Table of contents
Properties
- bootstrap
- buttons
- dialogClass
- htmlEncode
- modalClass
- okButton
- okButtonClass
- onClose
- onOpen
- preWrap
- result
- title
Properties
bootstrap
• Optional bootstrap: boolean
True to use Bootstrap dialogs even when jQuery UI present, default is based on `Q.Config.bootstrapMessages
Inherited from
Defined in
buttons
• Optional buttons: DialogButton[]
List of buttons to show on the dialog
Inherited from
Defined in
dialogClass
• Optional dialogClass: string
Dialog css class. Default is based on the message dialog type
Inherited from
CommonDialogOptions.dialogClass
Defined in
htmlEncode
• Optional htmlEncode: boolean
HTML encode the message, default is true
Inherited from
CommonDialogOptions.htmlEncode
Defined in
modalClass
• Optional modalClass: string
Class to use for the modal element for Bootstrap dialogs
Inherited from
CommonDialogOptions.modalClass
Defined in
okButton
• Optional okButton: string | boolean
The title of OK button, or false to hide the OK button
Defined in
okButtonClass
• Optional okButtonClass: string
CSS class for OK button
Defined in
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
Defined in
onOpen
• Optional onOpen: () => void
Type declaration
▸ (): void
Event handler that is called when dialog is opened
Returns
void
Inherited from
Defined in
preWrap
• Optional preWrap: boolean
Wrap the message in a <pre> element, so that line endings are preserved, default is true
Inherited from
Defined in
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
Defined in
title
• Optional title: string
Dialog title