a non-geek's blog

Random notes on linux and web development

Posts Tagged ‘dojo

DOJO: Opening menu item on mouseover when using dijit.MenuBar

with 5 comments

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

Bookmark and Share

Written by nongeekboy

April 27, 2010 at 11:57 am

Posted in dojo

Tagged with , ,

Follow

Get every new post delivered to your Inbox.

Join 213 other followers