Suppose I have an component's instance but I don't know what it is. Is there a convenient way to get the xtype of this component?
According to the API all components (all types of Ext JS objects with an xtype
I guess) inherits a method getXType()
, which you can use like in the following:
var t = new Ext.form.TextField();
alert(t.getXType()); // alerts 'textfield'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With