EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Tareq on January 10, 2013, 08:31:14 PM



Title: how to close all tabs in tabs panel?
Post by: Tareq on January 10, 2013, 08:31:14 PM
I want to close all tabs from the tabs panel programmaticaly. Please some help me...


Title: Re: how to close all tabs in tabs panel?
Post by: stworthy on January 10, 2013, 11:17:27 PM
Call 'close' method to close a tab panel. To close all the tab panels, try the following code:
Code:
function test(){
var count = $('#tt').tabs('tabs').length;
for(var i=count-1; i>=0; i--){
$('#tt').tabs('close',i);
}
}