adds a tabbar object to the popup
width | number | tabbar width |
height | number | tabbar height |
conf | object | optional, tabbar config for api-init |
dhtmlXTabBar | dhtmlXTabBar instance |
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"}
]
});
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