Check documentation for the latest version of dhtmlxSuite setSkin DHTMLX Docs


changes the tabbar's skin

void setSkin(string skin);
skinstringskin name, "dhx_skyblue" (default), "dhx_web" and "dhx_terrace" supported


var myTabbar = new dhtmlXTabBar("parentId");
// or = "dhx_web";
var myTabbar = new dhtmlXTabBar("parentId"); // web skin will be applied


on init stage a tabbar has the following skin autodetect logic:

  • if a tabbar is attached to another dhtmlx component - inherits its skin, if not:
  • checks property (new in version 4.0) and uses value if set, if not:
  • checks (please, use instead of this one), if not:
  • tries to detect the skin automatically (depending on the attached css file, if several files attached, takes the skin of the last one)
  • if all prev attempts failed - uses the default skin - "dhx_skyblue"
Back to top