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. Indicates whether the TabControl.BeforeAddItem and TabControl.AfterAddItem events are called on method execution.

Description

The insertItem method inserts a tab to the specified position.

Comments

Available values of the fireEvents parameter:

Example

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

See also:

TabControl