我有一个dojo对话功能,并且希望能够向其中添加5行的表格。我怎样才能做到这一点?下面是我的代码。
dojo.require("dijit.Dialog");
dojo.require("dijit.form.TextBox");
dojo.require("dojox.grid.EnhancedGrid");
dojo.addOnLoad(function() {
popup = new dijit.Dialog({
title: "Non-Spatial Permanent Feature Deductions...",
style: "width: 750px; height: 400px",
content: "<input dojoType='dijit.form.Button' type='button' name='name' id='name' label='OK'>"
});
popup.show()
});
最佳答案
如果您的表格行是固定的,即5,那么您可以做的一件简单的事情就是创建一个html文件,表格中有5行,然后在对话框中调用该文件。
popup = new dijit.Dialog({
title: "Non-Spatial Permanent Feature Deductions...",
style: "width: 750px; height: 400px",
href:"table.html"
});