当前标记如下所示:
<div data-dojo-type="dijit.form.DropDownButton" data-dojo-props="dropDownPosition: 'above'">
<span>413</span>
<div data-dojo-type="dijit.TooltipDialog">
<button data-dojo-type="dijit.form.Button">413</button>
<button data-dojo-type="dijit.form.Button">617</button>
<button data-dojo-type="dijit.form.Button">860</button>
<button data-dojo-type="dijit.form.Button">203</button>
</div>
</div>
在添加data-dojo-props
属性之前,一切正常。使用该属性后,窗口小部件将根本不呈现对话框。
提前感谢您的帮助!
答案 0 :(得分:2)
您引用的文档表明dropDownPosition
采用数组,而不是单个字符串。将data-dojo-props="dropDownPosition: 'above'"
更改为data-dojo-props="dropDownPosition: ['above']
“