I have a panel like
var filterPanel = Ext.create('Ext.panel.Panel', {
bodyPadding: 5,
width: 300,
myValue:5,
title: 'Filters',
initComponent: function() {
this.items = [{
xtype: 'textfield',
value: this.myValue
}];
this.callParent();
}
renderTo: Ext.getBody()
});
i try to create a item has xtype: 'textfield' and value is myValue of panel. But that's fail.
How to do that thanks. Here is my example text http://jsfiddle.net/4Cmuk/