ExtJS 5 Combobox fieldLabel绑定?为什么不起作用?

时间:2015-07-09 21:01:12

标签: extjs

我在ExtJs5中遇到数据绑定的麻烦。我仍然无法理解为什么字段标签不能绑定到视图控制器,因为有setFieldLabel() function?

{
  xtype: 'combobox',
  store: 'genderStore',
  queryMode: 'local',
  displayField: 'label',
  valueField: 'gender',
  labelAlign: 'top',
  bind:{
         value:'{scrape}',
         fieldLabel:'{myLabel}'
        }
}


formulas: {
    myLabel:function(get){
        return get('widgetSettings').properties.keyDim.dimensionName;
    },
    scrape:function(get){
        return 0;
    },

该值已填充,但fieldLabel - 不是。

谢谢!

0 个答案:

没有答案