Generates HTML for the toolbar item.
getItemHTML(item)

item | object, toolbar item object

Returns HTML string.

#### Description

The first and only argument item is the item object. This method is called internally to generate HTML for the item. The .items array holds all item objects for the toolbar. There is no need to call this method directly, but it can be overwritten.
If you have toolbar defined in the following way: $('#toolbar').w2toolbar({ name : 'toolbar', right : 'text on the right', items : [ { type: 'check', id: 'item1', text: 'Check', img: 'icon-page', checked: true }, { type: 'radio', id: 'item3', group: '1', text: 'Radio 1', img: 'icon-add' }, { type: 'radio', id: 'item4', group: '1', text: 'Radio 2', img: 'icon-add' } ] }); You can get generate HTML for the item: var html = w2ui.toolbar.getItemHTML(w2ui.toolbar.items[0]); console.log(html);