TabControl.insertButton

Syntax

insertButton(value: JSON | PP.Ui.Button | PP.Ui.TabControl, position: PP.LTRB, _isItem: Boolean, fireEvent: Boolean);

Parameters

value. Element to be added.

position. Position of the panel where item will be added.

_isItem. Indicates whether an element is added as a tab.

fireEvent. Indicates whether the TabControl.AddButton event is called on method execution.

Description

The insertButton method adds a button to the TabControl component.

Comments

Available values of the _isItem parameter:

Available values of the fireEvent parameter:

The method completely repeats actions of the TabControl.addButton method.

Example

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

See also:

TabControl