On Click for Dropdown

Home Forums Older releases 1.0.x On Click for Dropdown

Viewing 7 posts - 1 through 7 (of 7 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?