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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -