a non-geek's blog

Random notes on linux and web development

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

About these ads

Written by nongeekboy

April 27, 2010 at 11:57 am

Posted in dojo

Tagged with , ,

5 Responses

Subscribe to comments with RSS.

  1. Please tell me the latest developments in the project .. I’d much

    abdulrhman

    May 16, 2010 at 9:20 pm

  2. What do you want to know?

    nongeekboy

    May 17, 2010 at 5:47 am

  3. 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

  4. Update for new versions of Dojo:

    HiThere

    March 6, 2014 at 7:39 pm

  5. div data-dojo-type=”dijit/MenuBar” id=”navMenu” data-dojo-props=’passivePopupDelay: 1, popupDelay: 1′

    HiThere

    March 6, 2014 at 7:40 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 213 other followers

%d bloggers like this: