extjs4 checkbox綁定click事件

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());
	        	        		};
	        				}
	        			}
	        		});


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章