Methods

add - add([parent], nodes)
Adds a sidebar node or nodes.
blur - blur([event])
Called when sidebar looses focus.
click - click(id, [event])
Called when user clicks the node.
collapse - collapse(id)
Collapses node with id.
collapseAll - collapseAll([parent])
Collapses all expanded children of specified node.
contextMenu - contextMenu(id, [event])
Called when user right clicks the node.
dblClick - dblClick(id, [event])
Called when user double clicks the node.
disable - disable(id1, [id2], ...)
Disables sidebar node or nodes with id.
each - each(fn, [nodes])
Iterates nodes
enable - enable(id1, [id2], ...)
Enables sidebar node or nodes with id.
expand - expand(id)
Expands sidebar node with id.
expandAll - expandAll([parent])
Expands all collapsed children of specified node.
expandParents - expandParents(id)
Expands each parent of the specified node.
find - find([parent], attrs)
Finds sidebar nodes that have attributes defined inattr and returns them or an empty array.
focus - focus([event])
Called when sidebar gets focus.
get - get([parent], [id], [returnIndex])
Finds sidebar node with id and returns it or its index.
goFlat - goFlat()
Called when flat button is clicked.
hide - hide(id1, [id2], ...)
Hides sidebar node or nodes with id.
inView - inView(id)
Returns true if node is in visible area of the sidebear
insert - insert([parent], before, nodes)
Inserts a node or nodes before node before.
keydown - keydown(event)
Processes keydown events.
lock - lock(message, [showSpinner])
Locks the sidebar.
menuClick - menuClick(id, index, [event])
Called when user select item from context menu.
mouseAction - mouseAction(action, anchor, nodeId, event, [type])
Called when mouse action needs to be processed.
otherTooltip - otherTooltip(el, text)
Shows or hides tooltip for the node's icon, handle or badge.
remove - remove(id1, id2, ...)
Removes nodes from the sidebar.
scrollIntoView - scrollIntoView([id])
Scroll nodes into view
search - search(str)
Performs textual search on the sidebar
select - select(id)
Selects sidebar node with id.
set - set([parent], id, node)
Finds sidebar node with id and extends it with node object.
setCount - setCount(id, count, [className], [style])
Updates badge text and style of the sidebar node with id.
show - show(id1, [id2], ...)
Shows sidebar node or nodes with id.
showPlus - showPlus(el, color)
Shows or hides "Show/Hide" text on the right in the groups
sort - sort([options], [nodes])
Sorts sidebar nodes
toggle - toggle(id)
Toggles sidebar node with id.
tooltip - tooltip(el, text)
Shows or hides tooltip for the node.
unlock - unlock()
Unlocks the sidebar.
unselect - unselect([id])
Unselects sidebar node with id.
update - update(id, options)
Quick refresh of a node if possible

Common Methods

destroy - destroy()
Destroys the object.
off - off(type, [handler])
Removes event listener from the object.
on - on(type, handler)
Adds event listener to a object.
refresh - refresh([id])
Refreshes the object without completely re-inserting it.
render - render([box])
Renders the object into box.
resize - resize()
Resizes the object to the width and height of its container.
trigger - trigger(eventData)
Executes all event listeners added with on() method.