现在的位置: 首页 > 综合 > 正文

extjs4 checkbox绑定click事件

2013年09月25日 ⁄ 综合 ⁄ 共 309字 ⁄ 字号 评论关闭
var checkbox = new Ext.form.field.Checkbox({
	        			boxLabel:obj.items[i].fname,
	        			inputValue:obj.items[i].fid,
	        			name:'roleright',
	        			labelAlign:'right',
	        			id:obj.items[i].fid,
	        			listeners:{
	        				afterrender:function(obj){
	        					obj.getEl().dom.onclick = function(){
	        						obj.findParentByType("checkboxgroup").previousNode().setValue(obj.getValue());
	        	        		};
	        				}
	        			}
	        		});

抱歉!评论已关闭.