应用样式更改后丢失'FormattedID'链接

时间:2012-07-26 23:04:50

标签: javascript rally

我有一个使用columnCfgs的以下设置设置的拉力网格对象:

columnCfgs: [
    'FormattedID',
    'Name',
    'PlanEstimate'
]

这给了我一个很好的格式化链接到" FormattedID"中的UserStory;领域。问题是,我不喜欢列在页面上的布局方式,因此我将FormattedID列更改为:

{ text: 'ID', dataIndex: 'FormattedID', width: 60 }

这为我提供了正确的列间距,但字段文本不再直接链接到它引用的用户素材。如何更改列宽,还能保持良好的格式?

1 个答案:

答案 0 :(得分:0)

您可以使用FormattedIDTemplate类正确格式化链接:

{
    text: 'ID',
    width: 60,
    xtype: 'templatecolumn',
    tpl: Ext.create('Rally.ui.renderer.template.FormattedIDTemplate')
}

请注意,FormattedIDTemplate类被标记为私有,并且它的接口可能会在未来版本的sdk中更改。

相关问题