我在 jquery ui 对话框中放置了 dojo 下拉按钮。按钮的下拉列表不会显示在 jquery ui 对话框中,但会创建 dojo 按钮。我将 z-index 设置为超过 1000。你对这个问题有什么建议吗?
这是我的代码
//links for dojo library
<script type="text/javascript">
//beginning of TraderView(CDS) Actions Button
require(["dojo/ready", "dijit/form/DropDownButton", "dijit/DropDownMenu", "dijit/MenuItem", "dojo/dom"], function (ready, DropDownButton, DropDownMenu, MenuItem, dom) {
ready(function () {
//for document
var menu = new DropDownMenu();
var menuItem1 = new MenuItem({
label: "Export to Excel",
onClick: function () { alert('Export to Excel'); }
});
menu.addChild(menuItem1);
var menuItem2 = new MenuItem({
label: "Export to PDF",
onClick: function () { alert('Export to PDF'); }
});
menu.addChild(menuItem2);
var menuItem3 = new MenuItem({
label: "Term Sheet",
onClick: function () { alert('Term Sheet'); }
});
menu.addChild(menuItem3);
var button = new DropDownButton({
label: "Document",
name: "dcment",
dropDown: menu,
id: "tvButton"
});
dom.byId("dropDownButtonDc").appendChild(button.domNode);
});
});
//end of TraderView(CDS) Actions Button
</script>