2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

What is 'xtype' in ExtJS ?

What is "xtype" in ExtJS ?
userimage
The xtype will be looked up at render time up to determine what type of child Component like TextField or NumberField etc to create in a container. Some xtypes as below,
xtype     =   Class                      
button = Ext.Button
textfield = Ext.form.TextField
radio - Ext.form.Radio
grid   =  Ext.grid.GridPanel
combo =  Ext.form.Combobox
toolbar = Ext.Toolbar
for e.g. :
var text1 = Ext.widget({
     xtype: 'textfield',
     fieldLabel: 'KT : '
});
Answer is