PP.TS.Ui.TrendWizard(settings: Object);
settings. JSON object that contains values of class properties.
The TrendWizard constructor creates an instance of the TrendWizard class.
To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Create a wizard that validates data by comparing time series trends and place it in a dialog box:
/* Create a wizard for data validation by comparing time series trends */ var trendWizard = new PP.TS.Ui.TrendWizard({ Source: workbookBox.getSource() // Data source }); // Get and load metabase hierarchy to dialog var metaHierarchy = workbookBox.getSource().getHier(); trendWizard.setHierarchy(metaHierarchy, True); // Get DOM tree for this wizard var dom = trendWizard.getDomNode(); // Set wizard style PP.addClass(dom, "PPValidationSettingsDlgContent"); // Add the created wizard to the dialog var dialog = new PP.Ui.Dialog({ Caption: "Trend comparison", Content: trendWizard, Width: 735, // Dialog width Height: 150 // Dialog height }); // Display this dialog dialog.show(); // Get a breadcrumb by object from the wizard var breadcrumb = trendWizard._Breadcrumb; /* Hide and display breadcrumb again for its correct displaying */ breadcrumb.hide(); breadcrumb.show();
After executing the example the data validation wizard that compares time series trends is created and shown in a dialog box:
See also: