attachSidebar

attaches dhtmlxSidebar to a popup

object attachSidebar( [object conf] );

Parameters

confobjectoptional, sidebar config for api-init

Returns

objectdhtmlxSidebar instance

Example

var myPop = new dhtmlXPopup(...);
var mySidebar = myPop.attachSidebar({
    items: [
        {id: "a1", text: "Tab 1", active: true},
        {id: "a2", text: "Tab 2"}
    ]
});

Back to top