extjs Ext.form.Checkbox check事件

来源:互联网 发布:桌面软件管理软件 编辑:程序博客网 时间:2024/06/11 21:03
var checkboxModule = new Ext.form.Checkbox({
    id : "reportId",
   name : "age",

   boxLabel :'年龄',
   width : 90,

   listeners : {

            "check" : function(obj,ischecked){

                                   if (ischecked== true) {
                                        Ext.MessageBox.alert('消息', "选中 getValue=="+obj.getValue()+"  boxLabel"+obj.boxLabel);
                                    }else{
                                         Ext.MessageBox.alert('消息', "取消选中");
                                    }

            }

    }

});

0 0
原创粉丝点击