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

Callbacks? #10

Closed
ahmadalfy opened this issue Feb 17, 2014 · 3 comments
Closed

Callbacks? #10

ahmadalfy opened this issue Feb 17, 2014 · 3 comments

Comments

@ahmadalfy
Copy link

Is there a way to invoke a function when a Drop is opened? I am trying to call some data using Ajax that would replace the content of the Drop but I can't seem to find a way to do it. Any suggestion?

@ncammarata
Copy link

Had to look into the source to see how this worked for my own project.

var drop = new Drop(options);
drop.on('open', function() {});
drop.on('close', function() {});

@zackbloom
Copy link
Contributor

Now documented, thanks guys.

@ahmadalfy
Copy link
Author

I couldn't find it on http://github.hubspot.com/drop/

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

3 participants