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

How can I run a function before a step? #72

Closed
zhangyuan0532 opened this issue Mar 15, 2017 · 2 comments
Closed

How can I run a function before a step? #72

zhangyuan0532 opened this issue Mar 15, 2017 · 2 comments

Comments

@zhangyuan0532
Copy link

I want to call a function before a step.
For example show a tab, show a modal and so on.

It would be better if it could call function after step for close the modal.

How can I do this?

@jwarby
Copy link
Owner

jwarby commented Mar 16, 2017

Hi, check the docs here: https://github.com/jwarby/jquery-pagewalkthrough#jquery-page-walkthrough-default-options

You can add onEnter and onLeave callbacks for each step.

Hope this helps!

@zhangyuan0532
Copy link
Author

Thanks.

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