PDA

View Full Version : [CLOSED] equivalent ext js 3.4 tab (in TabChange listener of tabpanel context ) in ext js 4.2 ?



ViDom
May 16, 2013, 3:01 PM
Hi,
I have this code wroten in Ext.Net. v1.6


<ext:TabPanel ID="tPanel" AutoHeight="True" runat="server" Height="40" Border="false" Hidden="True" ActiveIndex="0" >
<Listeners>
<TabChange Handler="if(tab.items.getCount()>0) { return false; } else { Ext.net.Mask.show({ msg : 'Loading list...', el : tab }); #{DirectMethods}.AddTab(tab.id); }"></TabChange>
</Listeners>
</ext:TabPanel>


what is equivalent of this in ext js 4.2 or Ext.Net v2.2?

Thanks,
ViDom

geoffrey.mcgill
May 16, 2013, 3:29 PM
Hello,

You can check Listener Arguments at the following location:

http://examples2.ext.net/#/Events/Listeners/Arguments/

Looks like the function signature is as follows:


function ( item, newTab, oldTab )

Hope this helps.

ViDom
May 16, 2013, 4:02 PM
Hello,

You can check Listener Arguments at the following location:

http://examples2.ext.net/#/Events/Listeners/Arguments/

Looks like the function signature is as follows:


function ( item, newTab, oldTab )

Hope this helps.

Thanks @geoffrey that's exactly what I asking for;) thread can be closed.