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.

SmartMenu configuration

Home Forums Older releases 1.0.x SmartMenu configuration

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

    I believe I this is the correct way to configure options by adding this in a page or including a .js file:

    $(function() {
         subIndicatorsText: " >",
         subIndicatorsPos: "append",
         rightToLeftSubMenus: true

    I’m using a frameworks system, so adding/maintaining extra javascript can be a bit cumbersome, partly because JS is now to be loaded at the bottom of the page (google SEO: so it makes modularizing difficult. I can’t keep the JS code near the Navigation code; keeping them in the same module to be loaded with one call.

    It would be cool if I could just put the options in a Span somewhere near the Navigation. For example:

    <span id="SmartMenusConfig"   noMouseOver="true"   subIndicatorsText=" >" subIndicatorsPos="append"  rightToLeftSubMenus="true"></span>

    I believe that’s valid xhtml markup.



    Thanks for your input! I have actually already planned adding support for a new “data-sm-options” attribute that could be set directly on the root UL element. This will be available with the next release. However, a $('#main-menu').smartmenus(); call would still be needed (except when the Bootstrap addon is used).

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