DOJO: Opening menu item on mouseover when using dijit.MenuBar
I’m using dojo at the project I’m working on now. One of the problems I encounter when was how to make the menu open when mouse over it. I found a solution on the dojo maillist. Here is the function that does the “magic”:
dijit._MenuBase.prototype.onItemHover = function(item){
this.focusChild(item);
if(this.focusedChild.popup && !this.focusedChild.disabled){
this._openPopup();
}
};
Source: here
Written by nongeekboy
April 27, 2010 at 11:57 am
Posted in dojo
Tagged with dijit menu, dijit.MenuBar, dojo
3 Responses
Subscribe to comments with RSS.
Please tell me the latest developments in the project .. I’d much
abdulrhman
May 16, 2010 at 9:20 pm
What do you want to know?
nongeekboy
May 17, 2010 at 5:47 am
I have a requirment of in DOJO for Closing menu item on mouseleave when using dijit.MenuBar
Any Suggestions or help would be helpful ??
Vishal
July 24, 2012 at 5:34 pm