Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Keeping track of current page from outside the component #10

Closed
piaaaac opened this issue Aug 22, 2017 · 3 comments
Closed

Keeping track of current page from outside the component #10

piaaaac opened this issue Aug 22, 2017 · 3 comments
Assignees

Comments

@piaaaac
Copy link

piaaaac commented Aug 22, 2017

Is there a way to keep track of the current page from outside the component? I mean independently from if pages changed by gesture or from with gotoPreviousPage() or gotoNextPage() methods.
Maybe the possibility to pass a callback that's executed on page change could do the trick?
Or maybe there's a way already that I can't see...

@darenju
Copy link
Owner

darenju commented Aug 22, 2017

You are right, there should be a way to detect a page change that is not caused by code.

I will work on that.

@darenju
Copy link
Owner

darenju commented Aug 22, 2017

It has been done. Check out PR #11. 😄

@piaaaac
Copy link
Author

piaaaac commented Aug 23, 2017

Perfect !! Thanks a lot for the quick response

@piaaaac piaaaac closed this as completed Aug 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants