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

setSkin

changes the tabbar's skin

void setSkin(string skin);

Parameters

skinstringskin name, "dhx_skyblue" (default), "dhx_web" and "dhx_terrace" supported

Example

var myTabbar = new dhtmlXTabBar("parentId");
myTabbar.setSkin("dhx_skyblue");
 
// or
window.dhx.skin = "dhx_web";
var myTabbar = new dhtmlXTabBar("parentId"); // web skin will be applied

Details

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 window.dhx.skin property (new in version 4.0) and uses value if set, if not:
  • checks window.dhtmlx.skin (please, use dhx.skin 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