WizardStep.StateToggled

Syntax

StateToggled: function (sender. args)

Parameters

sender. Event source.

args. Event information.

Description

The StateToggled event is fired when the Next wizard button becomes available.

Example

To execute the example, the HTML page must contain the ImportDataWizard component named importDataWizard (see Example of Creating the ImportDataWizard Component). Add a handler for the StateToggled event for the first step of the wizard:

var step1 = importDataWizard.getSteps()[0];

step1.StateToggled.add(function (sender, args)

{

    if (step1.getWereSettingsChanged() == true) alert("Settings are changed")

});

After executing the example, when the Next button becomes available at the first step of the wizard, the following message is displayed to the screen: Settings are changed (if the Next button at the first step activates only after the settings are changed).

See also:

WizardStep