Rally App SDK 2.0:如何在上获取工具提示
如果我有一个PortfolioItems集合,并且在configs列中包含PercentDoneByStoryPlanEstimate,我会得到预期的进度条。但是当我将鼠标悬停在进度条上时,我看不到工具提示中包含我在拉力赛中看到的额外信息 如何在应用程序中显示工具提示 示例代码:Rally App SDK 2.0:如何在上获取工具提示,rally,Rally,如果我有一个PortfolioItems集合,并且在configs列中包含PercentDoneByStoryPlanEstimate,我会得到预期的进度条。但是当我将鼠标悬停在进度条上时,我看不到工具提示中包含我在拉力赛中看到的额外信息 如何在应用程序中显示工具提示 示例代码: Rally.onReady(function() { Ext.define('CustomApp', { extend: 'Rally.app.App',
Rally.onReady(function() {
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function() {
Rally.data.ModelFactory.getModel({
type: 'PortfolioItem',
success: function(model) {
this.grid = this.add({
xtype: 'rallygrid',
model: model,
columnCfgs: [
'FormattedID',
'Name',
'PercentDoneByStoryPlanEstimate'
]
});
},
scope: this
});
}
});
Rally.launchApp('CustomApp', {
name: 'Grid Example'
});
});
您只需指定一个viewConfig并添加“rallypercentdonetooltip”插件,如下所示:
success: function(model) {
this.grid = this.add({
xtype: 'rallygrid',
model: model,
columnCfgs: [
'Name',
'FormattedID',
'PercentDoneByStoryPlanEstimate'
],
viewConfig:{
plugins:[
{ptype:'rallypercentdonetooltip'}
]
}
});