{xtype : 'radiogroup',
items : [{
boxLabel : 'jjj',
name : 'tyutrfytr',
inputValue : 1,
checked : true
}, {
boxLabel : 'kkk',
name : 'dfdsfdsddd',
inputValue : 2,
listeners: {
check : function(cb, rec, ind) {
alert('hhhh');
}
}
}]
}
上記のコードはalert
、最初のオプションを押しても2番目のオプションを押しても関係ありません。2番目のオプションがチェックされている場合にのみアラートを表示するべきではありませんか?