psainsbury
5 Aug 2009, 7:57 AM
Hi,
I'm new-ish to ExtJS and we have a lot of code which sometimes creates objects using the { xtype: 'footype' } syntax and sometimes using new My.FooType(). Is there any way for me to get that component and find out which ExtJS class corresponds to that xtype?
Or, put another way, I know I can do the following to find the xtype of a component:
var t = new Ext.form.TextField();
t.getXType();
But if t was created using {xtype:'textfield'} how would I find out in javascript that t is really created from Ext.form.TextField?
From
Paul
I'm new-ish to ExtJS and we have a lot of code which sometimes creates objects using the { xtype: 'footype' } syntax and sometimes using new My.FooType(). Is there any way for me to get that component and find out which ExtJS class corresponds to that xtype?
Or, put another way, I know I can do the following to find the xtype of a component:
var t = new Ext.form.TextField();
t.getXType();
But if t was created using {xtype:'textfield'} how would I find out in javascript that t is really created from Ext.form.TextField?
From
Paul