WelcomeScreen.addToolItem

Syntax

addToolItem(item:Object, type:PP.Ui.WelcomeScreen.ToolType, data:Object);

Parameters

item. Tool settings.

type. Tool type.

data. Tool data.

Description

The addToolItem method adds an element to the list of tools in the welcome screen.

Example

To execute the example, the HTML page must contain the WelcomeScreen component named wscreen (see Example of Creating the WelcomeScreen Component). Add a tool to the welcome screen:

TOlap= {		
  ResourceKey: "welcomeScreenOLAP",
  ColumnIndex: 1,
};
// Add a tool
wscreen.addToolItem(TOlap, PP.Ui.WelcomeScreen.ToolType.OLAP_ANALYSIS, {ModuleType: PP.App.ModuleType.Olap});

See also:

WelcomeScreen