鼠标悬停时的 dijit 菜单
我正在使用 dijit.menu 的菜单,它可以通过右键单击和左键单击来工作。 如何在鼠标悬停时打开菜单并在鼠标移出时关闭菜单?
dijitActionMenu = new dijit.Menu({
targetNodeIds:[actionMenuId],
leftClickToOpen:"true"
});
I am using menu using dijit.menu and Its work with right click and left click.
How I open the menu on mouse over and close on onmouseout?
dijitActionMenu = new dijit.Menu({
targetNodeIds:[actionMenuId],
leftClickToOpen:"true"
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过类似的内容
更多详细信息请参见dialogs_tooltips。甚至dijit.Menu也有onMouseOver 。
onMouseOver 事件
Have you tried something like
More details are here dialogs_tooltips.Even dijit.Menu have onMouseOver even.
onMouseOver Event
我能够获得 dijit/Menu
onmouseover
。创建一个将调用 onmouseover 事件的元素。
show()
将调用自定义小部件,该小部件将为您创建菜单。例如,
rollover.js 将是自定义小部件。
从它的构造函数中,您可以调用该函数并创建菜单。
I am able to get the dijit/Menu
onmouseover
.Create an element which will invoke onmouseover event.
show()
will call custom widget which will create menu for you.E.g.,
And rollover.js will be the custom widget.
From the constructor of it, you can invoke the function and create the menu.