题
我有一个rallygrid对象设置了与columncfgs的以下设置设置:
columnCfgs: [
'FormattedID',
'Name',
'PlanEstimate'
]
.
给我一个漂亮的格式化链接到“格式化的”字段中的userry。问题是,我不喜欢列在页面上的列出的方式,所以我将FormattedID列更改为:
{ text: 'ID', dataIndex: 'FormattedID', width: 60 }
.
这为我提供了正确的列间距,但字段文本不再直接链接到用户故事IT引用。如何更改列宽,但也保持良好的格式化?
解决方案
您可以使用FormattedIdTemplate类进行正确格式化链接:
{
text: 'ID',
width: 60,
xtype: 'templatecolumn',
tpl: Ext.create('Rally.ui.renderer.template.FormattedIDTemplate')
}
.
请注意,FormattedIdTemplate类被标记为私有,它的界面可能会在SDK的未来版本中更改。
不隶属于 StackOverflow