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

API method to start rotation? #10

Closed
paperscissors opened this issue Jan 5, 2022 · 1 comment
Closed

API method to start rotation? #10

paperscissors opened this issue Jan 5, 2022 · 1 comment

Comments

@paperscissors
Copy link

Hi, I was wondering if there's an available method to start the rotation programmatically, instead of pressing the rotate button.

Thanks!

@paperscissors
Copy link
Author

Just realized I can simply access the method with a ref.

For posterity:
add ref="fortuneWheel" to the component, then you can call it in the parent component via this.$refs.fortuneWheel.onRotateStart() in whatever context you'd like to.

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

1 participant