Dojo dialog nesting

折月煮酒 提交于 2019-12-08 02:56:32

问题


can a dojo dialog bring up another dojo dialog?


回答1:


dojo 1.3 only supports one modal dialog at a time, so while, yes, one dialog can open another, closing the second destroys the modality of the first.

This happens because dojo.Dialog uses a single global underlay object that provides screen between the dialog and anything else on the page. You can make it work if you're wiling to create your own underlay for each dialog and manage the z-indexes yourself.

I understand this will be rectified in 1.4.




回答2:


Yes, a dialog can open another dialog, but then you'd have two dialogs displayed -- they aren't modal between each other.

Since this is not the behavior I desire I've worked around this by creating my own handler -- it first checks for an open dialog, and if it finds one, closes it (and places it on a stack) before opening a new dialog. When it closes one it looks at the stack and re-opens dialogs lower on the stack.




回答3:


Multiple dialogs can be opened prior to Dojo 1.4, but there are problems with accessibility in that case (tabIndex is handled wrong) - so if you need your app to be accessible and support mutliple dialogs., you need to upgrade to Dojo 1.4 when it comes out.




回答4:


yes you are able to do it in dojo 1.6 and all above versions



来源:https://stackoverflow.com/questions/809350/dojo-dialog-nesting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!