add a new option (segment) to the button
| id |
$$("tabs").addOption(10, "New title", true);
In case of a tabbar, the method can as well take a more extensive option configuration of a tab.
And the parameters are as follows:
tabbar.addOption({id:1, value:"New", close:true, icon:"cog"}, true);