Johann-S/bs-stepper

How to get current index of the stepper?

rabbanirasha opened this issue ยท 3 comments

For example, if I am at the second step of a form and click next, I want to get a console log of "2", or the id of the corresponding div. I tried to use event.detail.indexStep but it does not work. There's stepper.to(n) to jump to step n, but there's nothing that will return n of current step, something like stepper.currentIndex(). I need it to validate my form with Parsley. Alternatively, if a sample code of bs-stepper with parsley integration can be given, then that would be great!

I'm looking for the same ๐Ÿ‘
Would be nice to have a stepper.getCurrentStep() method into the Stepper Class.

guess you can
image

Add this:

Captura

Captura2