应用样式更改后丢失“FormattedID"链接 [英] Losing 'FormattedID' link after applying style changes
问题描述
我有一个为 columnCfgs 设置了以下设置的rallygrid 对象:
I have a rallygrid object set up with the following settings for columnCfgs:
columnCfgs: [
'FormattedID',
'Name',
'PlanEstimate'
]
这给了我一个很好的格式化链接到FormattedID"字段中的 UserStory.问题是,我不喜欢列在页面上的布局方式,因此我将 FormattedID 列更改为:
Which gives me a nice formatted link to the UserStory in the "FormattedID" field. The problem is, I don't like the way the columns are laid out on the page so I changed the FormattedID column to:
{ text: 'ID', dataIndex: 'FormattedID', width: 60 }
这给了我正确的列间距,但字段文本不再直接链接到它引用的用户故事.如何更改列宽,同时保持良好的格式?
This gives me the correct column spacing but the field text is no longer linked directly to the user story it references. How can I alter the column width, but also keep the nice formatting?
推荐答案
您可以使用 FormattedIDTemplate 类来正确格式化链接:
You can use the FormattedIDTemplate class to properly format the link:
{
text: 'ID',
width: 60,
xtype: 'templatecolumn',
tpl: Ext.create('Rally.ui.renderer.template.FormattedIDTemplate')
}
请注意,FormattedIDTemplate 类被标记为私有,其接口可能会在 sdk 的未来版本中发生变化.
Note that the FormattedIDTemplate class is marked as private, and it's interface may change in future versions of the sdk.
这篇关于应用样式更改后丢失“FormattedID"链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!