Study/Ext JS2011. 5. 20. 14:51
var configObject = {
xtype : 'label',
width : 50,
text : 'some Text'
}
//create a panel
new Ext.Panel({
id: 'someID',
items: [
configObject,
{
xtype: 'textfield'
},
configObject,
{
xtype: 'radio'<br>
}
]
})
Or:
new Ext.form.Label(configObject);