addToolItems(items:array);
items. Array with tool settings.
The addToolItems method adds elements to the list of tools in the welcome screen.
To execute the example, the HTML page must contain the WelcomeScreen component named wscreen (see Example of Creating the WelcomeScreen Component). Add tools to the welcome screen:
adTools= [{ ResourceKey: "welcomeScreenOLAP", ColumnIndex: 1, Type: PP.Ui.WelcomeScreen.ToolType.OLAP_ANALYSIS, Data: {ModuleType: PP.App.ModuleType.Olap}, },{ ResourceKey: "welcomeScreenReportConstructor", ColumnIndex: 2, Type: PP.Ui.WelcomeScreen.ToolType.REPORT_DESIGNER, Data: {ModuleType: PP.App.ModuleType.Reporter}, }]; // Add tools wscreen.addToolItems(adTools);
See also: