0
我已經加入的形式面板兩個文本字段刪除2個文本字段:通緝使用ExtJS的
{
xtype: 'formpanel'
,flex: 1
,id: 'remove'
,defaults: {
xtype: 'textfield'
,readOnly: true
}
,items: [{
bind: {
value: '{loadDetails.firstname}'
}
},{
bind: {
value: '{loadDetails.lastname}'
}
}
我已經寫下面的函數用於除去文本字段:
onRemove: function(){
Ext.getCmp('remove').setValue("");
}
上執行這個控制檯顯示setValue不是一個函數。