Is it possible to create a non-navigation menu using Smartmenus? I am using bootstrap as well. I’ve created one but the submenu control has a caret icon that is opened and nothing happens when it’s hovered/clicked.
By assigning class “sm” to menu’s main
and $(‘.sm’).smartmenus(); to initialize it in JS, the menu now opens but there is a + beside the menu title and the caret is still in the open direction. Also the menu is hovering over the main menu instead of beside it. Any advice? Thanks!
Sorry, but I’m not sure what exactly you are trying to achieve. If you like, please post a link to some kind of live demo and explain how exactly it should work. But please note that if you are using the Bootstrap addon, it only supports navbars.
Basically, I wanted to use SmartMenus to create a nested select menu. The HTML select optgroup only goes one level. It seems totally possible with SmartMenu, but only with Navbar. Why do you require the use of navbar? Maybe others might find this feature useful as well?
Currently the Bootstrap addon supports just navbars since by default they have very similar HTML markup to what SmartMenus needs – a regular unordered list. And SmartMenus’ main use case is as a global website menu which in Bootstrap corresponds to a navbar.
There are a few other cases where Bootstrap supports dropdowns but they use pretty different markup – i.e. they have a separate target element that triggers the dropdowns, etc. Possibly, in the future, the addon might be enhanced to support those cases too (via popup menus http://www.smartmenus.org/docs/#isPopup) but it’s not as straight forward as just supporting navbars.