API method to start rotation?
Closed this issue · 1 comments
paperscissors commented
Hi, I was wondering if there's an available method to start the rotation programmatically, instead of pressing the rotate button.
Thanks!
paperscissors commented
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.