insertItem(value: JSON | PP.Ui.TabItem, index: Number, fireEvent: Boolean);
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.
The insertItem method inserts a tab to the specified position.
Available values of the fireEvents parameter:
true. Default value. The TabControl.BeforeAddItem and TabControl.AfterAddItem events will be generated on method execution.
false. The TabControl.BeforeAddItem and TabControl.AfterAddItem events are not generated on method execution.
The example of method use is given in description of the TabControl.removeItemByIndex method.
See also: