Toggles the panel's toolbar.
toggleToolbar(type)

type | string, name of the panel

#### Description

The first and only argument type is the name of the panel. It can be one of the following:

- top
- left
- main
- right
- preview
- bottom

If you have a layout defined as: $('#layout').w2layout({ name : 'layout', panels : [ { type: 'top', size: 40 }, { type: 'main', content: 'This is main panel', toolbar: { items: [ { id: 'bt1', type: 'button', caption: 'Button 1', img: 'icon-page' }, { id: 'bt2', type: 'button', caption: 'Button 2', img: 'icon-page' }, { id: 'bt3', type: 'button', caption: 'Button 3', img: 'icon-page' } ], onClick: function (event) { console.log('event'); } } }, { type: 'preview', size: 200 } ] }); You can toggle toolbar w2ui['layout'].toggleToolbar('main');