Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Handle Expand Menu and Cancel Expand Operation #162

Open
mehmetalidumlu opened this issue Dec 30, 2016 · 1 comment
Open

Handle Expand Menu and Cancel Expand Operation #162

mehmetalidumlu opened this issue Dec 30, 2016 · 1 comment

Comments

@mehmetalidumlu
Copy link

Hi,
I use this plugin for layer control. I must close layers quickly on map. But when i click close icon on li item then menu expand. I want handle it.

screenshot_5

Can anybody help me for this problem?
Thanks...

@adgsm
Copy link
Owner

adgsm commented Dec 30, 2016

I guess you could do something like following...

$( '#your_close_icon_handler' ).on( 'click' , function( ev ){
   // use ev (event) argument to prevent default click behavior and propagation,
   // and then collapse menu...
   $('#menu').multilevelpushmenu( 'collapse' );
} );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants