0
我在extjs4工作。我将卡在一个点,我必须处理复选框上的选中和未选中的事件。我没有找到适合此选择的事件。我只是想在复选框处理选中和未选中事件..如何处理在extjs4复选框上选中和未选中的事件?
这里是我的一些代码
1)视图代码:----
Ext.define('Am.user.Login', {
extend:'Ext.form.Panel',
id:'loginId',
alias:'widget.Login',
title:'Get your key to socialize yet earn and learn (always free)',
items:[
{
----
},
{
xtype:'checkbox',
fieldLabel: 'Remember me',
name: 'remember',
//id:'checkbox1',
action:'check'
},
],
});
2)控制器代码: - -
Ext.define('Am.sn.UserController',
{
extend:'Ext.app.Controller',
------------
-----
init:function()
{
console.log('Initialized Users! This happens before the Application launch function is called');
this.control(
{
'Login button[action=loginAction]':
{
click:this.authenticateUser
},
'Login checkbox[action=check]':
{
change:this.checkedRemeberMe
},
}); //end of control
},//end of init function
checkedRemeberMe:function()
{
console.log("check box selected");
},
});
在这里,我要使用更改事件,但它调用时,它处于选中状态,每次.. 哪个事件我这里需要? 请给我一些建议...