Rally Cardboard专栏SDK 2.0rc1缺少displayValue配置?

时间:2013-09-19 10:20:29

标签: rally

我正在将纸板应用从SDK 2.0p5升级到SDK 2.0rc1。 我需要添加一个字符串,该字符串将显示在列的标题中。在2.0p5中,我使用了“displayValue”,但这在SDK 2.0rc1中不可用。 我该如何解决这个问题?

        Ext.Array.each(states, function (state) {
             columns.push({
               xtype:'rallycardboardcolumn',
               displayValue:state.get('Name'), //NOT AVAILABLE IN SDK 2.0rc1                   
               value:state.get('_ref'),
               record:state
            });
        });

Rally什么时候建议将自定义应用升级到最新的SDK,即2.0rc1?

1 个答案:

答案 0 :(得分:2)

在columnHeaderConfig中使用headerTpl解决了这个问题。

Ext.Array.each(states, function (state) {
           columns.push({
           xtype:'rallycardboardcolumn',                 
           //displayValue:state.get('Name'),
           columnHeaderConfig: {
                headerTpl:  state.get('Name'), 
           },                                                  
           value:state.get('_ref'),
           record:state
          });
  });