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{
}
}
}
}
}
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{
}
}
}
}
}
相关文章推荐
- radiogroup的change事件使用实例
- 单选按钮RadioGroup、复选框CheckBox的OnCheckedChangeListener事件的实现方法
- 多个RadioButton 在不使用RadioGroup的情况下,RadioButton的点击事件
- 浅谈Extjs radiogroup change事件与items下的checked属性
- 在IE中关于Radio和Checkbox在JQuery中的change事件的立即触发
- (转)android常用控件(二) RadioGroup RadioButton CheckBox Toast的使用
- Javascript 的面向事件的设计中,使用对象指针实例
- Python中使用PyHook监听鼠标和键盘事件实例
- RadioGroup动态添加RadioButton,并且获得事件
- Jquery 使用 onpropertychange 会被执行2遍 以及 onpropertychange 事件参数 不用attachEvent
- RadioGroup的点击事件
- RadioGroup 的使用
- 使用radioGroup的时候,每个radioButton的状态选择器要使用 state_checked=""属性,不能使用selected
- 实现RadioGroup控件使用,单选框。
- ie中的radio click()不能触发radio的change事件
- 单选按钮RadioGroup的使用
- 使用trigger方法触发事件 change -model
- Android开发(20)--RadioGroup的使用
- 使用RadioGroup和fragment搭建项目框架填坑
- 使用RadioGroup和ViewPager打造主页界面效果