Check documentation for the latest version of dhtmlxSuite isActive DHTMLX Docs


returns the item's active/inactive state

boolean isActive();
booleantrue|false, if an item is active/inactive


// 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"}
// getting the item's state
var isActv = mySidebar.items("a1").isActive();

Back to top