ExtJs处置点选按钮事件
items:[ ] 里添加的内容:
{
xtype:'radiogroup',
name:'lwzzInfoVO.type',
fieldLabel:'类别',
id:'type',
items:[{
boxLabel:'论文',
inputValue:'01',
name:'type',
checked:true
},{
boxLabel:'著作',
inputValue:'02',
name:'type'
}],
listeners: {"change": function() {
if (Ext.getCmp("type").getValue().type == "01"){
//alert("论文,没有出版社");
Ext.getCmp("kwmc").setVisible(true);
Ext.getCmp("cbs").setVisible(false);
} else {
//alert("著作,没有发表刊物");
Ext.getCmp("cbs").setVisible(true);
Ext.getCmp("kwmc").setVisible(false);
}
}
}
}