我在extJS 4中使用xtype在FormPanel內創建radioGroup。我試圖在收音機被選中時啓用/禁用文本字段。Ext JS 4收音機組檢查事件
{
xtype: 'radiogroup',
fieldLabel: 'Enable/Disable ',
columns: 2,
vertical: true,
items: [
{boxLabel: 'Enable', name: 'formtype', inputValue: '1'},
{boxLabel: 'Disable', name: 'formtype', inputValue:'2',checked:true},
]
}
我很困惑爲檢查/點擊事件添加監聽器的位置。預先感謝一噸。
我試圖添加這種方式,但爲什麼它顯示alert()2次? – aswininayak
聽衆:{ \t「change」:function(field,newValue,oldValue,eOpts){ \t \t alert(this.items); } \t \t \t \t \t} – aswininayak