【发布时间】:2013-10-09 06:52:00
【问题描述】:
我有一个类似的面板
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()
});
我尝试创建一个具有xtype: 'textfield' 且值为面板的myValue 的项目。但那是失败的。
如何做到这一点,谢谢。 这是我的示例文本 http://jsfiddle.net/4Cmuk/
【问题讨论】: