w2sidebar.unselect

Unselects sidebar node with id.
unselect([id])
id string, id of the sidebar node (optional)
Returns boolean.

Description

The node must exists in the .nodes array of the sidebar or its nested nodes. The node is identified by the .id property. The method will set .selected property of the node to false and will set .selected property of the sidebar to null.
If you do not provide .id argument, then currently selected node will be unselected.
If you have defined object in the following way: You can:

User Comments

comments powered by Disqus