EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Opan Mustopah on May 08, 2015, 10:48:39 PM



Title: hide speficed tabs.
Post by: Opan Mustopah 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


Title: Re: hide speficed tabs.
Post by: stworthy 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');


Title: Re: hide speficed tabs.
Post by: Opan Mustopah on May 09, 2015, 02:29:13 AM
thanks stworthy for your fast response. it works