Finds tab with id and extends it with tab object.
set(id, tab)

id | string, id of the tab object
tab | object, new tab object

Returns boolean.

#### Description

The first argument id is the id of the tab object you used when you created tabs. The .tabs array holds all created tab objects. The tab object is not replaced with tab, but extended by it. If you call this method it during run-time, you will need to call .refresh() method. If tab object was successfully extended the method will return true, otherwise false.
If you have tabs defined in the following way: $('#tabs').w2tabs({ name: 'tabs', active: 'tab1', tabs: [ { id: 'tab1', text: 'Tab 1' }, { id: 'tab2', text: 'Tab 2' }, { id: 'tab3', text: 'Tab 3' }, { id: 'tab4', text: 'Tab 4' } ] }); You can add tabs: w2ui['tabs'].set('tab5', { caption: 'New Caption' }); w2ui['tabs'].refresh();