这是我用的rediobutton的 和你的checkbox应该类似xtype: 'radiogroup', columns: 'auto', fieldLabel: '智能审核开关', id : 'rgid-Verifytype', // A radio group: A setValue on any of the following 'radio' inputs using the numeric // 'rating' field checks the radio instance which has the matching inputValue. items: [ {name : 'Verifytype',inputValue: '0',boxLabel: '开启当前账号智能审核',checked: true, listeners: { "check":function(el,checked) { if(checked) { //alert('选中了关闭当前账号智能审核') Ext.getCmp("iefftime").setDisabled(false); Ext.getCmp("rgid-isVerify").setDisabled(false); //Ext.getCmp("rgid-mappingway").setDisabled(false); Ext.getCmp("itxtmsg").setDisabled(false); verifyparamobj.verifyswitch = 0; //FieldSetCondition. } } }
columns: 'auto',
fieldLabel: '智能审核开关',
id : 'rgid-Verifytype',
// A radio group: A setValue on any of the following 'radio' inputs using the numeric
// 'rating' field checks the radio instance which has the matching inputValue.
items: [
{name : 'Verifytype',inputValue: '0',boxLabel: '开启当前账号智能审核',checked: true,
listeners:
{
"check":function(el,checked)
{
if(checked)
{
//alert('选中了关闭当前账号智能审核')
Ext.getCmp("iefftime").setDisabled(false);
Ext.getCmp("rgid-isVerify").setDisabled(false);
//Ext.getCmp("rgid-mappingway").setDisabled(false);
Ext.getCmp("itxtmsg").setDisabled(false);
verifyparamobj.verifyswitch = 0;
//FieldSetCondition.
}
}
}
},{name : 'Verifytype',inputValue: '1',boxLabel: '关闭当前账号智能审核',
listeners:{
"check":function(el,checked){
if(checked)
{
//alert('选中了关闭当前账号智能审核')
Ext.getCmp("iefftime").setDisabled(true);
Ext.getCmp("rgid-isVerify").setDisabled(true);
//Ext.getCmp("rgid-mappingway").setDisabled(true);
Ext.getCmp("itxtmsg").setDisabled(true);
verifyparamobj.verifyswitch = 1;
//FieldSetCondition.
}
}
}
}]