addActions(actions:array, reInit:Boolean);
actions. Array of actions. Available actions are contained in the PP.Ui.WelcomeScreen.ActionType enumeration.
reInit. Indicates if the list of last documents is rerendered. If the True value is set, the list is reset and rerendered only with added elements.
The addAction method adds elements to the list of actions 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). Clear the list and add two actions into the list of actions:
wscreen.addActions([ PP.Ui.WelcomeScreen.ActionType.NewDocument, PP.Ui.WelcomeScreen.ActionType.OpenDocument ],true);
See also: