2
渲染拉力SDK 2.1中的具体格在拉力SDK v1.33中,我可能使一个数据表是这样的:在SharePoint
...(extra code omitted)
var table = new rally.sdk.ui.Table(config, rallyDataSource);
table.display("tableDiv");
,它会显示在指定的“tableDiv”上已存在这一页。
在SDK V2.1中,我似乎无法弄清楚如何做同样的事情。当它呈现它占据了整个页面。
我试着将renderTo添加到Ext.define和this.add,但它似乎没有任何区别。
这里是我的代码:
Rally.onReady(function() {
Ext.define('PortfolioItems', {
extend: 'Rally.app.App',
componentCls: 'app',
renderTo: 'tableDiv',
launch: function() {
this.drawTypeComboBox();
},
drawTypeComboBox: function(){
this.typeComboBox = this.add({
xtype: 'rallyportfolioitemtypecombobox',
renderTo: 'tableDiv'
});
this.typeComboBox.on('select', this.drawGrid, this);
this.typeComboBox.getStore().on('load', this.drawGrid, this);
},
drawGrid: function(){
var selectedType = this.typeComboBox.getRecord();
Rally.data.ModelFactory.getModel({
type: selectedType.get('TypePath'),
success: function(model){
if(this.grid){
this.grid.reconfigureWithModel(model);
} else {
this.grid = this.add({
xtype: 'rallygrid',
renderTo: 'tableDiv',
columnCfgs: [
"PortfolioItemTypeName",
"FormattedID",
"Name",
"PlannedStartDate",
"PlannedEndDate",
"PercentDoneByStoryPlanEstimate",
"PercentDoneByStoryCount"
],
model: model
});
}
},
scope: this
});
}
});
Rally.launchApp('PortfolioItems', {
name: 'Portfolio Items'
});
});
任何帮助,不胜感激!谢谢!
我不确定如何做到这一点。目前有一个JS(部分HTML)文件,我们正在加载一个内容编辑器WebPart。这是我们的供应商能够在没有跨站点脚本错误的情况下为我们工作的唯一方式。我们试图附加到的div在该文件中。 –
啊。是的,这个html文件肯定需要托管在同一个域上。我想我并不完全确定你可以做什么,不能在SharePoint中做什么。我知道人有在其他系统,如汇合这就是为什么我在这里建议它... –
成功嵌入I帧,你可以尝试把它嵌入到这样的,如果你可以在同一台服务器为外部HTML文件:' 嵌入式应用测试