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.

TO SEE SUB-MENU When mouse click

Home Forums Older releases 0.9.x TO SEE SUB-MENU When mouse click

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3127
    spipheure77
    Participant

    Hello
    I want to know how to see sub- menu appear when mouse click and not when mouseover

    Thank you

    #3129
    spipheure77
    Participant

    the idea would be to do as the menu in the attached link ” tutorials” https://www.script-tutorials.com/demos/143/index.html#

    #3131
    admin
    Keymaster

    Hi, just use the noMouseOver: true option.

    #3132
    admin
    Keymaster

    Ah sorry, didn’t pay attention that you are using v0.9.x! The noMouseOver option is not available in v0.9.x so you can use a small mod posted in this thread:

    http://www.smartmenus.org/forums/topic/show-submenus-when-click-only/

    Let me know if you still have any troubles.

    #3133
    spipheure77
    Participant

    Thank you very much it works perfectly

    #3221
    dmanager
    Participant

    I just downloaded the latest version of SmartMenus and I still have to use the code in the link referenced above order to get the mouse over functionality to stop working.

    Here is my initialization (the subIndicators works):

    
    $(function() {
      $('#main-menu').smartmenus({
      noMouseOver:true,
      subIndicatorsText: " <i class='fa fa-caret-down' aria-hidden='true'></i>",
      subIndicatorsPos: "append",
    });
    

    Did I get the right code?

    Here are the headers:

    /*!
    * SmartMenus jQuery Plugin – v1.0.0 – January 27, 2016
    * http://www.smartmenus.org/
    *
    * Copyright Vasil Dinkov, Vadikom Web Ltd.
    * http://vadikom.com
    *
    * Licensed MIT
    */

    /*!
    * SmartMenus jQuery Plugin Bootstrap Addon – v0.3.0 – January 27, 2016
    * http://www.smartmenus.org/
    *
    * Copyright Vasil Dinkov, Vadikom Web Ltd.
    * http://vadikom.com
    *
    * Licensed MIT
    */

    #3253
    admin
    Keymaster

    If you are using the Bootstrap addon, you don’t need to initialize your menu like this:

    $(function() {
      $('#main-menu').smartmenus({
      noMouseOver:true,
      subIndicatorsText: " <i class='fa fa-caret-down' aria-hidden='true'></i>",
      subIndicatorsPos: "append",
    });

    Just add any custom options in “jquery.smartmenus.bootstrap.js” after this line:

    					$this.smartmenus({

    e.g. like this:

    					$this.smartmenus({
    						noMouseOver: true,
    						...

    The next version will allow setting any options via a new attribute “data-sm-options” but for now editing the “jquery.smartmenus.bootstrap.js” file is required.

    #3259
    niamh
    Participant

    @@@@@@@@@@

    #3265
    dmanager
    Participant

    But I still have to have this code for SmartMenus to work, correct?

    
    $('#main-menu').smartmenus({
    });
    
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.