Show/Hide Buttons

It is easy to show and hide buttons during the run time. The example below demonstrates how to do this.
$(function () { $('#toolbar').w2toolbar({ name: 'toolbar', items: [ { type: 'button', id: 'hide', caption: 'Hide', img: 'icon-delete' }, { type: 'button', id: 'show', caption: 'Show', img: 'icon-add' }, { type: 'break', id: 'break0' }, { type: 'button', id: 'btn', caption: 'Action Button', img: 'icon-page' }, { type: 'button', id: 'btn2', caption: 'Other Button', img: 'icon-page' } ], onClick: function (event) { if (event.target == 'show') this.show('btn'); if (event.target == 'hide') this.hide('btn'); } }); });