How to go to the highest parent using jquery.mmenu -


i have created menu using jquery.mmenu. have submenu's within menu's , functionality works expected. jquery.mmenu can go closest parent. want add new link allow user go upper parent in 1 go.

so lets have menu this: food --> drinks --> soft drinks --> coca cola if user @ coca cola level, want link brings user food. how solve this?

i got answer jquery.mmenu developer directly (frdh)

   var $menu = $("#my-menu").mmenu();     var api = $menu.data( "mmenu" );      $("#some-elem").on("click", function() {         api.closeallpanels();     }); 

he admitted somehow not in api docs yet. add later on.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -