Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

On Click for Dropdown

Home Forums Older releases 1.0.x On Click for Dropdown

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3046
    seeingis
    Participant

    I would like to change the behavior too “on-click” to reveal the sub menus (like the default bootstrap menus). No auto revival. How do I do that?

    #3057
    seeingis
    Participant

    A better explanation is remove the on-hover dropdown and make it on-click.

    #3072
    admin
    Keymaster

    Just use the noMouseOver: true option when initializing the script:

    http://www.smartmenus.org/docs/#noMouseOver

    #3078
    seeingis
    Participant

    Not sure who to put in the

     noMouseOver: true 

    I tried, but still learning.

    <script>
    $(function() {
     
       //Put code here but note sure what to do
      
    });
    </script>

    Appreciate help.

    #3088
    admin
    Keymaster

    Options can be passed when initializing the plugin – e.g.:

    $('#main-menu').smartmenus({
    	noMouseOver: true
    });
    #3506
    pbowers
    Participant

    SUGGESTION: This last instruction (how to pass options when initializing) should be included in the docs at the very top of the “Options” section.

    I was assuming some kind of (open-angle-bracket)tag data-option=”true”(close-angle-bracket) type of option setting and spent quite a bit of time banging my head against the wall before finding this.

    #8361
    hmartens
    Participant

    The noMouseOver: true works great thanks.

    What is the difference between using “noMouseOver: true” and “showOnClick: true;”?

    Also, the “noMouseOver: true” works great but if you click the menu twice it goes to the menu link…is there a way to disable the link so it doesn’t go to that link when you click the menu item twice?

    Thank you

    #9082
    jackyjoy123
    Participant

    thanks for the solution.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘1.0.x’ is closed to new topics and replies.