Base class used for dialogs
The constructor
Name | Type | Description |
---|---|---|
options | BaseDialogOptions | The options for the dialog |
An array with the HTMLElements that have to be added in the content of the dialog. Can be overloaded in the derived classes
Get the mover object used with this dialog. Create the object if needed. Can be overloaded in the derived classes
The options of the dialog box
The title of the dialog. Can be overloaded in the derived classes
An HTMLElement that have to be added as toolbar for the dialog. Can be overloaded in the derived classes
Add a css class to the #dialogHTMLElement, so some css settings can be overloaded for a specific dialog
Name | Type | Description |
---|---|---|
cssClass | String | The css class to add |
Add the container to the background.
Name | Type | Description |
---|---|---|
backgroundElement | HTMLElement | The used background. The background can be the background created by the modal dialogs or the document.body for non modal dialogs |
Add an element to the container
Name | Type | Description |
---|---|---|
htmlElement | HTMLElement | The element to add |
Cancel button handler. Can be overloaded in the derived classes
Ok button handler. Can be overloaded in the derived classes
Remove the container from the background
Name | Type | Description |
---|---|---|
backgroundElement | HTMLElement | The used background. The background can be the background created by the modal dialogs or the document.body for non modal dialogs |
BaseDialogMover for drag ond drop and touch operations
The cancel button on the top bar
Cancel button click event listener
The content HTMLElement
The container HTMLElement of the dialog
Options parameter
Top bar drag end event listener
Top bar drag start event listener
The topbar HTMLElement
Top bar touch event listener
Create the content HTMLElement
Create the dialog container
Create the toolbar HTMLElement
Create the top bar
Remove all events listeners and events dispatchers so all references to the dialog are released and finally remove all the htmlElements from the document