Class TwoButtonsDialog extends ModalBaseDialog

A customizable text dialog with two buttons. Create an instance of the dialog, then execute the show ( ) method. The Promise returned by the show ( ) method fullfil when the first button is used and reject when the second button or the cancel button on the topbar is used

Source : file dialogs/twoButtonsDialog/TwoButtonsDialog.js at line 36

Constructor

new TwoButtonsDialog ( options )

The constructor

Source : file dialogs/twoButtonsDialog/TwoButtonsDialog.js at line 50

Parameters

Name Type Description
options BaseDialogOptions or Object

An Object with the needed options. See DialogOptions class.

Public getters and setters

readonly get contentHTMLElements : Array of HTMLElement

An array with the HTMLElements that have to be added in the content of the dialog. Overload of the BaseDialog contentHTMLElements property.

Source : file dialogs/twoButtonsDialog/TwoButtonsDialog.js at line 74

readonly get title : String

The title of the dialog. Overload of the BaseDialog title property.

Source : file dialogs/twoButtonsDialog/TwoButtonsDialog.js at line 83

Public methods

createContentHTML ( )

Create all the controls needed for the dialog. Overload of the base class createContentHTML

Source : file dialogs/twoButtonsDialog/TwoButtonsDialog.js at line 59

Private properties

#textControl : HTMLElement

A html element with the text

Source : file dialogs/twoButtonsDialog/TwoButtonsDialog.js at line 43