Check documentation for the latest version 6.0 of dhtmlxSuite removeSep DHTMLX Docs

removeSep

removes a separator by id

void removeSep(string|number id);

Parameters

idstring|numberid of the separator to remove

Example

// init sidebar
var mySidebar = new dhtmlXSideBar({
    parent: "sidebarObj",
    template: "details",
    icons_path: "icons/16x16/",
    width: 160,
    items: [
        {id: "a1", text: "Item 1", icon: "image1.png", selected: true},
        {id: "a2", text: "Item 2", icon: "image2.png"},
        {id: "sep1", type: "separator"},
        {id: "a3", text: "Item 3", icon: "image3.png"}
    ]
});
 
// removing the separator
mySidebar.removeSep("sep1");

Back to top