Posts Tagged ‘dijit.MenuBar’
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