Check documentation for the latest version of dhtmlxSuite attachTabbar DHTMLX Docs

attachTabbar

attaches dhtmlxTabbar to a window

object attachTabbar( [object conf] );

Parameters

confobjectoptional, tabbar config for API-initialization

Returns

objectdhtmlXTabbar instance

Example

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

Details

old param for init tabbar instead of "conf" - "mode", it deprecated since 4.0, to set mode, please use conf.mode

// old deprecated
var myTabbar = myWins.window(id).attachTabbar("bottom");
// new usage
var myTabbar = myWins.window(id).attachTabbar({mode:"bottom"});
Back to top