Need docs how to set options when using Bootstrap addon

Home Forums Older releases 1.0.x + Bootstrap addon Need docs how to set options when using Bootstrap addon

This topic contains 1 reply, has 2 voices, and was last updated by  admin 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3507

    pbowers
    Participant

    I just spent several very enjoyable hours trying to set

    $(“#main-menu”).smartmenu({ noMouseOver: true });

    only to find out that I had to edit the jquery.smartmenus.bootstrap.js itself since the options are (inexplicably?) hardcoded in that file.

    (1) SUGGESTION: Make this VERY clear in the documentation WHENEVER you mention the possibility of using the bootstrap addon
    (2) SUGGESTION: Better yet would be to allow setting of options outside the downloaded source code. Typically plugins expect you to NOT edit the downloaded source at all (except for a config file or something) and so this is a bit hard to figure out for newbies to SmartMenus.

    OTOH I don’t want to sound like an ingrate. This is a GREAT piece of software you have invested LOTS of time developing and then you made it available to us for free. THANK YOU!!! (My comments above are intended to be constructive criticism to make it even better…)

    #8609

    admin
    Keymaster

    Sorry to hear that the docs were not clear enough! You don’t really need to edit the source code in “jquery.smartmenus.bootstrap.js” for this. You could use the data-sm-options attribute:

    https://www.smartmenus.org/docs/1-0-x/#data-sm-options

    instead:

    <ul class="nav navbar-nav" data-sm-options="{ noMouseOver: true }">...
Viewing 2 posts - 1 through 2 (of 2 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?