insertButton (value: JSON | PP.Ui.Button | PP.Ui.TabControl, position: PP.LTRB, _isItem: Boolean, fireEvent: Boolean);
value. Element to be added.
position. Position of the panel where item will be added.
_isItem. Determines whether item will be added as a tab or as a button. By default it is set to False: that is, item is added as a button. If the parameter is set to True,
fireEvent. Determines whether the TabControl.AddButton event is generated on method execution. By default the parameter is set to True and the event is fired.
The insertButton method adds a button in the TabControl component.
The method completely repeats actions of the addButton method.
The example of method use is given in description of the TabControl.removeItemByIndex method.
See also: