Dialog.CancelButtonClicked

Syntax

CancelButtonClicked: function (sender, args);

Parameters

sender. Event source.

args. Event information. Available arguments: DialogResult - settings selected in the dialog box by the user, IsCancelClose - it determines that the dialog box does not close on clicking the Cancel button (if the value is true).

Description

The CancelButtonClicked event occurs on clicking the Cancel button.

Comments

The CancelButton field refers to the Cancel button.

Example

To execute the example, the HTML page must contain the FontDialog component named fontdialog (see Example of Creating the FontDialog Component). Adds the CancelButtonClicked event handler:

fontdialog.CancelButtonClicked.add(function (sender, args) {
    // After the Cancel button clicking the dialog is not closed
    args.IsCancelClose = true;
    alert("The Cancel button is clicked");
});

After executing the example clicking the Cancel button in the dialog box brings up a message that the button is clicked. The dialog box does not close.

See also:

Dialog