EasyUI Forum
May 02, 2024, 11:51:18 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to close all tabs in tabs panel?  (Read 10443 times)
Tareq
Newbie
*
Posts: 4


View Profile
« on: January 10, 2013, 08:31:14 PM »

I want to close all tabs from the tabs panel programmaticaly. Please some help me...
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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);
}
}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!