Expands all collapsed children of specified node.
expandAll([parent])

parent | string, id of the sidebar node

Returns undefined.

#### 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 .expanded property of all children of the node to true. If you do not specify parent argument, then all collapsed nodes of the entire sidebar will be expanded.
If you have defined object in the following way: $('#sidebar').w2sidebar({ name : 'sidebar', img : 'icon-page', nodes: [ { id: 'id-1', text: 'Level 1', hidden: true }, { id: 'id-2', text: 'Level 2', expanded: false, nodes: [ { id: 'id-2-1', text: 'Level 2.1' }, { id: 'id-2-2', text: 'Level 2.2' } ]}, { id: 'id-3', text: 'Level 3' } ] }); You can: w2ui['sidebar'].expandAll();