You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the nice looking menu.
How do you capture the click event on a submenu item ?
I have tried : $(document).on('click', '.dl-menuwrapper li a:only-child'....
As my menus are dynamically generated but I don't capture a click.
I have seen in the js that there is the onLinkClick event, but I don't manage to capture it.
Activity
roncodes commentedon Feb 16, 2017
I use the onLinkClick method.
$('#dl-menu').dlmenu({ animationClasses: { classin: 'dl-animate-in-2', classout: 'dl-animate-out-2' }, onLinkClick: function(item, event) { event.preventDefault(); console.log(item); console.log(event); } });