react-stepzilla
react-stepzilla copied to clipboard
Conditional Navigation of the Step Components (Dynamic Steps)
Have 16 steps or pages, need to show only a dynamic number of steps based on user input on each page. [eg: like survey forms].
About to cross this bridge myself. Looks like there is a jumpToStep() utility method, but you lose validation.
Redux is too heavy for what Im doing, else I'd be tempted to just go with redux form's Wizard form https://redux-form.com/6.0.0-alpha.6/examples/wizard/
This would be a great feature.
Have you tried using the jumpToStep() utility and a dynamic list of steps that update? It should “just work” as StepZilla works with an array of steps. But chances are you will lose HoC validation as it’s built to be explicitly tied to step index (not too happy about this hard coupling, but will have to do for now)
Let me know how you went? I would love to see a PR if you needed to update core code to support it.
I'll keep this open... it would require an enhancement to make sure StepZilla support dynamic steps
Is it possible to dynamically add steps? I don't want to load all steps upfront (and is not possible).
What I'm after is the ability to insert more step components during the process from eg: remote data
How can I add steps dynamically?
how can i display an alert on every page
👍 This would be a great enhancement