Constructor
new ConfirmDialog(titleText, callbacks, warningTextopt, confirmTextopt, cancelTextopt, contentInjectionopt)
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
titleText | string | Header text for the dialog (may contain HTML) | ||||||||||||||
callbacks | object | Callback functions for dialog actionsProperties
| ||||||||||||||
warningText | string | <optional> | '' | Body text shown below the title | ||||||||||||
confirmText | string | <optional> | 'Confirm' | Label for the confirm button | ||||||||||||
cancelText | string | <optional> | 'Cancel' | Label for the cancel button | ||||||||||||
contentInjection | HTMLElement | | <optional> | null | Optional element inserted into the body |