0
我放置了dojo下拉按鈕裏面的jQuery UI對話框。 jquery ui對話框中沒有顯示按鈕的下拉列表,但創建了dojo按鈕。我通過設置z-index超過1000來支持。你對這個問題有任何建議嗎?dojo下拉按鈕裏面的jQuery UI對話框
這裏是我的代碼
//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>