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

Adding Steps Dynamically #15

Open
NuelNikhil opened this issue Mar 9, 2018 · 1 comment
Open

Adding Steps Dynamically #15

NuelNikhil opened this issue Mar 9, 2018 · 1 comment

Comments

@NuelNikhil
Copy link

Hello,
I am using this plugin in my angularjs project. As part of the requirement, I need to add a step dynamically on click event and I was able to append new step (li). But the buttons seems to be not getting updated.
For example,
I have 3 steps at first, dynamically I create a new step so in total there are 4 li elements. but on clicking Next button when the step reaches the 3rd li the button shows Finish. It should be showing Next as I got one more step which I have created dynamically.
What to do ??? I tried several things like overriding button class changes, Text changes etc and was successful in making the Text Next when it reaches the 3rd step. but on clicking Next it stays at the same page / Wizard content. Need Help

@kingsloi
Copy link

@NuelNikhil, it sounds like you need to reset the wizard. It was initiated with the 3 steps, so it doesn't know how about the 4th, although it is in the DOM, it wasn't there when you initiated the wizard.

$().wizard('reset');

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

2 participants