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

How to get current index of the stepper? #232

Open
rabbanirasha opened this issue Nov 22, 2020 · 3 comments
Open

How to get current index of the stepper? #232

rabbanirasha opened this issue Nov 22, 2020 · 3 comments

Comments

@rabbanirasha
Copy link

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!

@SouthViking
Copy link

SouthViking commented Dec 1, 2020

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

@leandroruel
Copy link

guess you can
image

@rodrigocabraln
Copy link

Add this:

Captura

Captura2

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

4 participants