您的位置:首页 > 其它

radiogroup的change事件使用实例

2012-05-14 13:39 337 查看
{

xtype: 'radiogroup',

fieldLabel: '报账类型',

name:'REPORTTYPE',

labelWidth:60,

flex:1,

items: [

{boxLabel: '借款报账', name: 'REPORTTYPE', inputValue: 1, checked: true},

{boxLabel: '合同报账', name: 'REPORTTYPE', inputValue: 2},

{boxLabel: '其他报账', name: 'REPORTTYPE', inputValue: 0},

],

listeners: {

change: function(g, newValue, oldValue, eOpts){

if(typeof newValue.REPORTTYPE === 'number'){

var type = newValue.REPORTTYPE;

if( type == 1){

}else if(type == 2){

}else{

}

}

}

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: