Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay event on close #17

Closed
nMustaki opened this issue Jun 2, 2015 · 2 comments
Closed

Overlay event on close #17

nMustaki opened this issue Jun 2, 2015 · 2 comments

Comments

@nMustaki
Copy link

nMustaki commented Jun 2, 2015

Hi,

thanks for MUI, it's great to use !
I use mui.overlay for modals, and I would need to know when the overlay is removed, to do some cleanups tasks. Do you have any thought on this, for instance about namespace ?

Thanks !

@amorey
Copy link
Member

amorey commented Jun 2, 2015

Great! I'm happy to hear you like using MUI!

There's an undocumented 'onclose' option which lets you pass a close callback:

mui.overlay('on', {
  onclose: function() {console.log('overlay is closed');}
});

Hope that helps! We'll update the documentation soon.

@nMustaki
Copy link
Author

nMustaki commented Jun 3, 2015

Thanks you !

@nMustaki nMustaki closed this as completed Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants