attaches dhtmlxTabbar to a tab
conf | object | optional, tabbar config for API-initialization |
object | dhtmlXTabbar instance |
var myTabbar = myTabbar.tabs(id).attachTabbar({
align: "right",
mode: "bottom",
tabs: [
{id: "a1", text: "Tab 1", active: true},
{id: "a2", text: "Tab 2"}
]
});
The old parameter used for tabbar initialization - "mode" is deprecated since version 4.0 and replaced with "conf".
To set the tabs mode, use conf.mode:
// old deprecated
var myTabbar = myTabbar.tabs(id).attachTabbar("bottom");
// new usage
var myTabbar = myTabbar.tabs(id).attachTabbar({mode:"bottom"});
Back to top