EasyUI Forum

General Category => General Discussion => Topic started by: contestant on April 15, 2015, 08:18:10 AM



Title: getTab not working
Post by: contestant on April 15, 2015, 08:18:10 AM
Hello

"getTab" method not working for tabs plugin and return null.

examples:
var tab = $(this).tabs('getTab', index);

var tab = $(this).tabs('getTab', title);

Please guide me...

Thanks a lot


Title: Re: getTab not working
Post by: stworthy on April 15, 2015, 06:26:27 PM
Please refer to this documentation http://www.jeasyui.com/documentation/tabs.php


Title: Re: getTab not working
Post by: contestant on April 15, 2015, 11:24:19 PM
Hi

This error occurred because the "onClose" event run after tab destroy,
So we must use this action in "onBeforeClose" event.

How ever in action "onClose" parameters not useful for get options of closed tab.

Thanks  ;)