attachSidebar

attaches dhtmlxSidebar to a cell

object attachSidebar( [object conf] );

Parameters

confobjectoptional, sidebar config for api-init

Returns

objectdhtmlxSidebar instance

Example

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

Back to top