我需要一个使代码,使检查是ExtJS复选框选中与否

我需要一个使代码,使检查是ExtJS复选框选中与否,extjs,Extjs,我需要一个使代码,使检查是ExtJS复选框选中或不选中 我使用这样的代码: var RadioPeriod = new Ext.form.Checkbox({ id:'period', //xtype: 'radio', checked: true, fieldLabel: '', labelSeparator: '', bo

我需要一个使代码,使检查是ExtJS复选框选中或不选中

我使用这样的代码:

var RadioPeriod = new Ext.form.Checkbox({
             id:'period',
             //xtype: 'radio',
               checked: true,
               fieldLabel: '',
               labelSeparator: '',
               boxLabel: 'Period',
               name: 'employment_type',
               inputValue: 'period'
               // listener below
          });
我只需要一个简短的听众

顺便说一句,我需要一项每月收费的服务,而且有全职员工可以很快回答我的问题,因为我真的需要暗中回答我的问题。我想要的服务要比你们免费提供的服务要多

我不想继续支持Sencha,Inc.,因为它不适合我的需要,而且我没有风险资本投资者从合作伙伴计划中为Sencha,Inc.支付费用。

RadioPeriod.getValue()


所有这些都在API文档中:

Hi,可以用listener完成吗?但是如果我尝试使用它,我的GUI就会消失。是的,它可以。请用您使用的代码更新您的问题,否则我们无法真正帮助您。
{
id:'period',
xtype: 'radio',
fieldLabel: '',
labelSeparator: '',
boxLabel: 'Period',
name: 'employment_type',
inputValue: 'period'
   listeners : {
      change : function(field, newValue, oldValue, options) {
      if(newValue)
      {
         //code executed when checkbox is checked
      }
      else
      {
         //code executed when checkbox is not checked
      }
   }
 }
}