closes (unloads) the specified tab from the tabbar
actvId | string|number|boolean | (optional) if the specified tab is selected - selects the nearest tab or specifies its id, default true |
var myTabbar = new dhtmlXTabBar("parentId");
myTabbar.addTab("a1", "Rage", null, null, true);
myTabbar.addTab("a2", "Motorhead");
myTabbar.addTab("a3", "Poisonblack");
myTabbar.tabs("a1").close(); // close "a1" and select "a2"
// or
myTabbar.tabs("a1").close("a3"); // close "a1" and select "a3"
// or
myTabbar.tabs("a1").close(false); // close "a1" and don't select anything
added in version 4.0
Back to top