Wizard.addStep

Syntax

addStep (step: PP.Ui.WizardStep);

Parameters

step. Step to be added to the wizard.

Description

The addStep method adds a step to the wizard.

Example

To execute the example, the HTML page must contain the ImportDataWizard component named importDataWizard (see Example of Creating the ImportDataWizard Component). Remove the first wizard step and add a new step:

importDataWizard.removeStep(importDataWizard.getSteps()[0]);//remove the first step of the wizard
var importStep = new PP.Mb.Ui.ImportColumnsStep(//create an instance of the PP.Mb.Ui.ImportColumnsStep class
{
    CubeImport: importDataWizard.getCubeImport()
});
sourceStep.setStepSettings(importDataWizard.getWizardSettings());//set wizard settings for the step
importDataWizard.addStep(importStep );//set step in the wizard
sourceStep.show();//show the step

After executing the example the first step of the wizard will be removed and then a new instance of the PP.Mb.Ui.ImportColumnsStepclass will be created and added in the wizard and shown.

See also:

Wizard