Show contents 

Working with Common Classes > Classes > WelcomeScreen > WelcomeScreen.addAction

WelcomeScreen.addAction

Syntax

addAction(action:PP.Ui.WelcomeScreen.ActionType, data:Object, updateItemsSize:Boolean);

Parameters

action. Action.

data. Action data.

updateItemsSize. Indicates whether size is refreshed after adding.

Description

The addAction method adds an element to the list of actions 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 record to the last opened documents:

wscreen.addAction(PP.Ui.WelcomeScreen.ActionType.NewDocument)

See also:

WelcomeScreen