How to call QStepper API methods?
-
I’m new to VueJS and this Quasar framework.
I am using the Stepper and I have a button outside the stepper component and I want to use it to go to the next stepper panel but how do I call the
next
method inside anew Vue(...)
call?I am referring to https://quasar.dev/vue-components/stepper#QStepper-API
-
@embluk use a ref, then call the method. It’s actually in the example just above the api docs.
<q-stepper ref="stepper". ..
then<q-btn @click="$refs.stepper.next()" ...
. -
@metalsadman Oh yeah I see the example now, I totally missed it!
Thank you!