<link rel="stylesheet" type="text/css" href="../summary.css"/> 
<div class="container">
<div class="obj-property">
    <a href="w2sidebar.add">add</a> <span>- add([parent], nodes)</span>
</div>
<div class="obj-property-desc">
    Adds a sidebar node or nodes. 
</div>

<div class="obj-property">
    <a href="w2sidebar.blur">blur</a> <span>- blur([event])</span>
</div>
<div class="obj-property-desc">
    Called when sidebar looses focus.
</div>

<div class="obj-property">
    <a href="w2sidebar.click">click</a> <span>- click(id, [event])</span>
</div>
<div class="obj-property-desc">
    Called when user clicks the node.
</div>

<div class="obj-property">
    <a href="w2sidebar.collapse">collapse</a> <span>- collapse(id)</span>
</div>
<div class="obj-property-desc">
    Collapses node with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.collapseAll">collapseAll</a> <span>- collapseAll([parent])</span>
</div>
<div class="obj-property-desc">
    Collapses all expanded children of specified node.
</div>

<div class="obj-property">
    <a href="w2sidebar.contextMenu">contextMenu</a> <span>- contextMenu(id, [event])</span>
</div>
<div class="obj-property-desc">
    Called when user right clicks the node.
</div>

<div class="obj-property">
    <a href="w2sidebar.dblClick">dblClick</a> <span>- dblClick(id, [event])</span>
</div>
<div class="obj-property-desc">
    Called when user double clicks the node.
</div>

<div class="obj-property">
    <a href="w2sidebar.disable">disable</a> <span>- disable(id1, [id2], ...)</span>
</div>
<div class="obj-property-desc">
    Disables sidebar node or nodes with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.enable">enable</a> <span>- enable(id1, [id2], ...)</span>
</div>
<div class="obj-property-desc">
    Enables sidebar node or nodes with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.expand">expand</a> <span>- expand(id)</span>
</div>
<div class="obj-property-desc">
    Expands sidebar node with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.expandAll">expandAll</a> <span>- expandAll([parent])</span>
</div>
<div class="obj-property-desc">
    Expands all collapsed children of specified node.
</div>

<div class="obj-property">
    <a href="w2sidebar.expandParents">expandParents</a> <span>- expandParents(id)</span>
</div>
<div class="obj-property-desc">
    Expands each parent of the specified node.
</div>

<div class="obj-property">
    <a href="w2sidebar.find">find</a> <span>- find([parent], attrs)</span>
</div>
<div class="obj-property-desc">
    Finds sidebar nodes that have attributes defined in<span class="argument">attr</span> and returns them or an empty array.
</div>

<div class="obj-property">
    <a href="w2sidebar.focus">focus</a> <span>- focus([event])</span>
</div>
<div class="obj-property-desc">
    Called when sidebar gets focus.
</div>

<div class="obj-property">
    <a href="w2sidebar.get">get</a> <span>- get([parent], [id], [returnIndex])</span>
</div>
<div class="obj-property-desc">
    Finds sidebar node with <span class="argument">id</span> and returns it or its index.
</div>

<div class="obj-property">
    <a href="w2sidebar.goFlat">goFlat</a> <span>- goFlat()</span>
</div>
<div class="obj-property-desc">
    Called when flat button is clicked.
</div>

<div class="obj-property">
    <a href="w2sidebar.hide">hide</a> <span>- hide(id1, [id2], ...)</span>
</div>
<div class="obj-property-desc">
    Hides sidebar node or nodes with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.insert">insert</a> <span>- insert([parent], before, nodes)</span>
</div>
<div class="obj-property-desc">
    Inserts a node or nodes before node <span class="argument">before</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.keydown">keydown</a> <span>- keydown(event)</span>
</div>
<div class="obj-property-desc">
    Processes keydown events.
</div>

<div class="obj-property">
    <a href="w2sidebar.lock">lock</a> <span>- lock(message, [showSpinner])</span>
</div>
<div class="obj-property-desc">
    Locks the sidebar.
</div>

<div class="obj-property">
    <a href="w2sidebar.menuClick">menuClick</a> <span>- menuClick(id, index, [event])</span>
</div>
<div class="obj-property-desc">
    Called when user select item from context menu.
</div>

<div class="obj-property">
    <a href="w2sidebar.remove">remove</a> <span>- remove(id1, id2, ...)</span>
</div>
<div class="obj-property-desc">
    Removes nodes from the sidebar.
</div>

<div class="obj-property">
    <a href="w2sidebar.scrollIntoView">scrollIntoView</a> <span>- scrollIntoView([id])</span>
</div>
<div class="obj-property-desc">
    Scroll nodes into view
</div>

<div class="obj-property">
    <a href="w2sidebar.select">select</a> <span>- select(id)</span>
</div>
<div class="obj-property-desc">
    Selects sidebar node with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.set">set</a> <span>- set([parent], id, node)</span>
</div>
<div class="obj-property-desc">
    Finds sidebar node with <span class="argument">id</span> and extends it with <span class="argument">node</span> object.
</div>

<div class="obj-property">
    <a href="w2sidebar.show">show</a> <span>- show(id1, [id2], ...)</span>
</div>
<div class="obj-property-desc">
    Shows sidebar node or nodes with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.toggle">toggle</a> <span>- toggle(id)</span>
</div>
<div class="obj-property-desc">
    Toggles sidebar node with <span class="argument">id</span>.
</div>

<div class="obj-property">
    <a href="w2sidebar.unlock">unlock</a> <span>- unlock()</span>
</div>
<div class="obj-property-desc">
    Unlocks the sidebar.
</div>

<div class="obj-property">
    <a href="w2sidebar.unselect">unselect</a> <span>- unselect([id])</span>
</div>
<div class="obj-property-desc">
    Unselects sidebar node with <span class="argument">id</span>.
</div>

</div>