EasyUI Forum
May 14, 2024, 05:23:50 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: hide speficed tabs.  (Read 8375 times)
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« on: May 08, 2015, 10:48:39 PM »

hello again..

just to the point.
is it possible to hide specified tabs? in the docs, there is only hideHeaders method that hide all tabs.

thanks in advance
Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 09, 2015, 12:28:51 AM »

Once you get the specified tab panel, you can call 'close' method to hide this panel. The code below shows how to achieve this functionality.
Code:
var p = $('#tt').tabs('getTab', 1);
p.panel('options').tab.hide();
p.panel('close');
Logged
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« Reply #2 on: May 09, 2015, 02:29:13 AM »

thanks stworthy for your fast response. it works
Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
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!