2012-07-26 46 views
0

我有一個設置了以下設置columnCfgs一個rallygrid對象:失去「FormattedID」鏈接改變

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

這給了我在「FormattedID」場一個漂亮的格式化鏈接到用戶故事。問題是,我不喜歡列布局在頁面上的方式,使我改變了FormattedID列:

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

這給了我正確的列間距,但該領域的文本將不再直接聯繫到它引用的用戶故事。我怎樣才能改變列的寬度,但也保持良好的格式?

回答

0

可以使用FormattedIDTemplate類格式正確的鏈接:

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

注意,FormattedIDTemplate類被標記爲私有,並且它的界面可以在SDK的未來版本中改變。