jQuery UI Widgets Forums Navigation Menu, Context Menu How to close menu item automatically?

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 10 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • How to close menu item automatically? #64107

    RambabuK
    Participant

    Hi,

    On button click, I am created a jqxmenu and opened accordingly. If I visited any menu-item it was working properly. Even though I was not visited any menu-item and click some where in the form, it was closed.

    But the thing is, I want to close menu when I come out of menu area with out mouse click.

    Please suggest a solution for this.

    Regards
    Rambabu

    How to close menu item automatically? #64137

    Dimitar
    Participant

    Hello Rambabu,

    I assume you are referring to a context menu implementation. You may try the following solution (it is suitable for a menu with no sub-items only):

    $("#jqxMenu").mouseleave(function () {
        $("#jqxMenu").jqxMenu('close');
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    How to close menu item automatically? #64143

    RambabuK
    Participant

    Perfect. This is working fine when I opened menu and visited / mouse over.

    Now the case is, Just clicked on button, menu was opened properly. Then I placed my mouse in some other object in the same form. In this case menu was not closed/hide.

    Please suggest.

    How to close menu item automatically? #64159

    Dimitar
    Participant

    Hi RambabuK,

    We suggest you bind to the form object’s mouseenter event and close the menu when it fires.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.