Removes and animates closing of the tab.
animateClose(id, [event])

id | string, id of tab to close
event | object or array, tab or array of tabs

Returns undefined.

#### Description

This method will remove and animate closing of the tab with id = id. 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'].animateClose('tab3');