TabControl.insertItem

Syntax

insertItem (value: JSON | PP.Ui.TabItem, index: Number, fireEvent: Boolean);

Parameters

value. Tab, an instance of the PP.Ui.TabItem class, or its view in JSON.

index. Index which determines position number where the tab will be inserted.

fireEvents. It determines whether on method execution the BeforeAddItem and AfterAddItem events are generated. Default value is set to True, that is events are generated.

Description

The insertItem method inserts a tab to the specified position.

Example

The example of method use is given in description of the TabControl.removeItemByIndex method.

See also:

TabControl