Is it posible to add the “CLOSE” option also to the addOption() function ?
in this sample it’s possible to close the tabbar tab:
http://docs.webix.com/samples/20_multiview/11_close_button.html
Is it posible to add the “CLOSE” option also to the addOption() function ?
in this sample it’s possible to close the tabbar tab:
http://docs.webix.com/samples/20_multiview/11_close_button.html
There is a removeOption method in pair with an addOption one: http://docs.webix.com/api__ui.segmented_removeoption.html
And what’s wrong with the sample?
nothing wrong with the sample, this sample i refered to don’t use the addOption()
In the sample are the options closable “tabsD” , and i hoped to set the options using addOption() with also the “close” .
Now we 've to do this after the addOption():
$$(‘Tabbar01’).addOption( iID, cCaption, true ) ;
sample source:
var tabsD = [
{ id:“t1”, value:“List”},
{ id:“t2”, value:“Form”, close:true },
{ id:“t3”, value:“About”, close:true }
]
var cellsD =[
{ id:"t1", template:"This tabs can't be closed" },
{ id:"t2", template:"demo tab 2" },
{ id:"t3", template:"demo tab 3" }
];
webix.ui({
container:"areaD",
rows:[
{view:"tabbar", options:tabsD},
{cells:cellsD}
]
});
Right you are, now there’s no way to set tab configuration within the addOption function.
We will consider the possibility in the nearest future.
thnx