Check documentation for the latest version 6.0 of dhtmlxSuite disable DHTMLX Docs

disable

disables the specified tab in the tabbar

void disable(string|boolean activateId);

Parameters

activateIdstring|boolean(optional) set to "true" to select the next tab or
to specify its id (if disabled tab selected), false by default

Example

var myTabbar = new dhtmlXTabBar("parentId");
 
// disable only, tab still active
myTabbar.tabs("a1").disable();
 
// disable and select next one (if "a1" was selected)
myTabbar.tabs("a1").disable(true);
 
// disable and select specified (if "a1" was selected)
myTabbar.tabs("a1").disable("a3");

Details

disabled tabs ignore user clicks, but they can be selected by script

Change log

added in version 4.0

Back to top