XiaoLin1995/vue-fortune-wheel

API method to start rotation?

Closed this issue · 1 comments

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

Thanks!

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.