Callback event when jQuery 'mmenu' opened -
using jquery mmenu plugin need call javascript function after menu has finished opening. can't see api documentation how using plug-in api, i'm thinking perhaps option observe class name on <html>
element, gains class of mm-opened
when menu opened. feels little 'hacky' though, wondered if see way, within bounds of native api, accomplish required function call?
edit: contrary expectations openpanel
event doesn't fire when menu opened - fires when sub-menus opened, although suggests job, doesn't.
many thanks.
got (not documented!):
var api = $('#menu').data('mmenu'); api.bind('opened', function () { console.log('opened'); });
Comments
Post a Comment