Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Close event? #2

Closed
Rodeoclash opened this issue May 13, 2014 · 2 comments
Closed

Close event? #2

Rodeoclash opened this issue May 13, 2014 · 2 comments

Comments

@Rodeoclash
Copy link

Hey,

Just implemented this, a nice easy to use modal. I might have missed something but is their an event or callback that fires on close? I just want to wrap a promise around the modal closing but I couldn't see any event handling.

If not, I'll dig into it myself and add it.

Thanks!

@jonathan-piat
Copy link
Member

Hello Samuel,

A new version of PgwModal will be launched in a few weeks.
Your request is a good idea, and will be integrated into the new version.

Thank you,
Jonathan

@jonathan-piat
Copy link
Member

In the release 1.3, four modal events have been added :

  • "PgwModal::Create"
  • "PgwModal::Open"
  • "PgwModal::Close"
  • "PgwModal::pushContent"

Example :
$(document).bind('PgwModal::Create', function() {
console.log('PgwModal::Create');
});

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