Wizard.CancelButtonClicked

Syntax

CancelButtonClicked: function (sender. args)

Parameters

sender. Event source.

args. Event information.

Description

The CancelButtonClicked event occurs on clicking the Cancel button.

Example

To execute the example, the HTML page must contain the ImportDataWizard component named importDataWizard (see Example of Creating the ImportDataWizard Component). Add handlers for the CancelButtonClicked and Closed event:

importDataWizard.CancelButtonClicked.add(function ()

{

    if (importDataWizard.getSteps()[0].getIsComplete() == false) alert("Setting at the step 1 is not completed")

});

importDataWizard.Closed.add(function ()

{

    if (importDataWizard.getSteps()[0].getIsRequired() == true) alert("Step 1 is mandatory")

});

After executing the example, on clicking the Cancel button, an appropriate message displays on the screen if the setting at the first step is not completed.

An appropriate message is shown on the screen on closing the wizard if the first step is mandatory.

See also:

Wizard