selects the item prevous to the active one or the first one, if nothing's selected
callEvent | boolean | set to 'true' to call onBeforeSelect/onSelect events |
// 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"},
{id: "a2", text: "Item 2", icon: "image2.png", selected: true}
]
});
// select a1
mySidebar.goToNextItem();
Back to top