Called when sidebar gets focus.
focus([event])

event | object, DOM Event object

Returns undefined.

#### Description

This method is called when sidebar gets focus either by user clicking on it with the mouse or using tab key to. It is used internally, but you can use it to emulate getting focus. This method emits .onFocus event.
If you have sidebar defined in the following way: $('#sidebar').w2sidebar({ name : 'sidebar', nodes: [ { id: 'id-1', text: 'Level 1', hidden: true }, { id: 'id-2', text: 'Level 2', expanded: true, 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 click on the node: w2ui['sidebar'].focus();