Check documentation for the latest version of dhtmlxSuite attachTabbar DHTMLX Docs

attachTabbar

adds a tabbar object to the popup

dhtmlXTabBar attachTabbar(number width,number height,object conf);
widthnumbertabbar width
heightnumbertabbar height
confobjectoptional, tabbar config for api-init
dhtmlXTabBardhtmlXTabBar instance

Example

var myPop = new dhtmlXPopup(...);
var myTabbar = myPop.attachTabbar(320, 400, {
    align: "right",
    mode: "bottom",
    tabs: [
        {id: "a1", text: "Tab 1", active: true},
        {id: "a2", text: "Tab 2"}
    ]
});

Details

The "mode" param had been used for tabbar initialization instead of "conf", it is deprecated since 4.0. To set the mode, please use conf.mode:

// old deprecated
var myTabbar = myPop.attachTabbar(320, 400, "bottom");
// new usage
var myTabbar = myPop.attachTabbar(320, 400, {mode:"bottom"});
Back to top