Tom S. Posted January 4, 2021 Share Posted January 4, 2021 I couldn't figure out from reading this article: I created a simple dropdown menu using this format: <!-- The trigger --> <a href='#elMyMenu_menu' id='elMyMenu' data-ipsMenu>Open Menu</a> <!-- The menu --> <ul id='elMyMenu_menu' class='ipsMenu'> ... </ul> But I want to be able the listen to open and close events. How can I create an event listener using ips.ui.menu? As a side note, a lot of these articles lack an actual example which would save people from having to post to the forum. Link to comment Share on other sites More sharing options...
Solution Martin A. Posted January 4, 2021 Solution Share Posted January 4, 2021 (edited) $( '#elMyMenu' ).on( 'menuOpened', function( elemID, originalEvent, menu ) { }); $( '#elMyMenu' ).on( 'menuClosed', function( elemID, menu ) { }); Edited January 4, 2021 by Martin A. Tom S. and bfarber 2 Link to comment Share on other sites More sharing options...
Recommended Posts