Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Dynamic Steps #35

Closed
AbuAlKarmi opened this issue Jul 27, 2013 · 13 comments
Closed

Dynamic Steps #35

AbuAlKarmi opened this issue Jul 27, 2013 · 13 comments

Comments

@AbuAlKarmi
Copy link

Could you please add a functionality to add new Dynamic Steps ( tab and content ).

@VinceG
Copy link
Owner

VinceG commented Jul 28, 2013

Adding steps is adding new tabs, since tabs are part of the html structure i am not sure how and if this should be part of the bootstrap wizard.

@VinceG
Copy link
Owner

VinceG commented Aug 2, 2013

@AbuAlKarmi Please reply so we can either discuss or close this.

@AbuAlKarmi
Copy link
Author

Sorry for late.
Yes I can add a new tab using bootstrap tabs, but I can't navigate them using wizard methods, since the new tab doesn't has an index so it's not visible as a step in the wizard methods.
I tried to re-initialize it after adding the tab, but it doesn't work.
May we need a method to destroy the wizard and initialize it again after adding a new dynamic step ?

Regards,

@VinceG
Copy link
Owner

VinceG commented Aug 2, 2013

@AbuAlKarmi Hm i see what you mean. i'll have to test this myself and see how it works right now and what are the options to reinitialize the wizard when adding/removing tabs.

@anorborg
Copy link
Contributor

@AbuAlKarmi Do you have code or something you code put on plunker or jsfiddle?

@VinceG
Copy link
Owner

VinceG commented Oct 10, 2013

@AbuAlKarmi @anorborg

It is confirmed. For some reason it won't move past the last step when more than one is added. See:

http://embed.plnkr.co/WqgUtU/preview

@VinceG
Copy link
Owner

VinceG commented Oct 10, 2013

@anorborg It's all the way at the bottom.

@anorborg
Copy link
Contributor

created a pull request #50 to hopefully take care of this.

@VinceG
Copy link
Owner

VinceG commented Dec 31, 2013

Added.

@VinceG VinceG closed this as completed Dec 31, 2013
@a3aakash
Copy link

can anybody tell me how to apply dynamic steps?

@anorborg
Copy link
Contributor

anorborg commented Dec 1, 2016

@a3aakash I haven't used this in a while, but here is a comment I posted about using dynamic steps with angular a while ago (http://disq.us/p/jcr6jj). The reset I refer too is now in the code and should be doable. I don't have time to put together an example, but basically add the steps to the DOM in javascript and call the resetWizard method. Hope this helps.

@a3aakash
Copy link

a3aakash commented Dec 1, 2016

@anorborg I have use the same steps you have mentioned but using resetWizard function it all away clears up the form inside the tab content. So I am pretty much confused that is dynamic steps are possible in middle or not. I have also created an issue regarding this #203 . Please @VinceG look into this matter as it is very urgent. Thank you.

@a3aakash
Copy link

a3aakash commented Dec 3, 2016

@anorborg i found the solution of getting dynamic steps in middle as in reset wizard you are calling fixNavigationButtons which is only used when you want to empty the fields of whole form. If you are adding steps within the form wizard the you dont want that function to be called. Thank you. have a nice day.. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants