Extjs无线电addevent问题
我在点击事件上添加单选按钮。 但不工作。 我的代码:
RadioPanel:
RadioPanels = new Ext.Panel({
layout: 'table',
id: 'newRadioEdit',
name: 'newRadioEdit',
//title:'Servis Durumu',
bodyStyle: Ext.isIE ? 'padding-left:35px;' : 'padding-left:35px;',
layoutConfig: {
columns: 2
},
anchor: '100%',
defaults: {
border: false,
layout: 'form',
labelWidth: 15,
style: {
paddingRight: '10px'
}
}
});
var radio= new Ext.form.Radio({
name: 'SERVIS_DURUMU',
inputValue: '1',
boxLabel: 'Test',
style: {
marginRight: '10px'
}
});
radio.addListener('click',function() {
alert("yihuuu");
});
RadioPanels.add(radio);
i'am add radio buttons on click event. but not working. my code :
RadioPanel :
RadioPanels = new Ext.Panel({
layout: 'table',
id: 'newRadioEdit',
name: 'newRadioEdit',
//title:'Servis Durumu',
bodyStyle: Ext.isIE ? 'padding-left:35px;' : 'padding-left:35px;',
layoutConfig: {
columns: 2
},
anchor: '100%',
defaults: {
border: false,
layout: 'form',
labelWidth: 15,
style: {
paddingRight: '10px'
}
}
});
var radio= new Ext.form.Radio({
name: 'SERVIS_DURUMU',
inputValue: '1',
boxLabel: 'Test',
style: {
marginRight: '10px'
}
});
radio.addListener('click',function() {
alert("yihuuu");
});
RadioPanels.add(radio);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该事件是检查而不是点击。
the event is check not click.