Dojo DnD acceptance of outside objects

痴心易碎 提交于 2019-12-11 05:29:21

问题


Is it possible to code a Dojo DnD target to accept external objects, such as files or folders from a file explorer? Windows Explorer, for example.


回答1:


I doubt it, because it will be the browser that will receive the DnD event...
At best you can count on a plugin or extension to handle it, like the excellent DragDropUpload extension does for file upload fields in Firefox.




回答2:


What kind of file explorer are you talking about? From what I can recall you'd be lucky to get dnd working properly even for table rows, the api is a pain in the @$$.



来源:https://stackoverflow.com/questions/162733/dojo-dnd-acceptance-of-outside-objects

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