enables/disables a "close" button for tabs
mode | boolean | true/false to enable/disable, disabled by default |
var myTabbar = new dhtmlXTabBar("parentId");
myTabbar.addTab("a1", "Rage"); // without close button
myTabbar.addTab("a2", "Motorhead", null, null, null, true); // with close button
// enable close button for new tabs
myTabbar.enableTabCloseButton(true);
myTabbar.addTab("a3", "Poisonblack"); // with close button
myTabbar.addTab("a4", "Manowar", null, null, null, false); // without close button
affects only the tabs added after, can be overridden by "close" param in addTab()
Back to top