You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many requests asking for the dynamic step implementation (#7).
I would like to implement the feature since most people wanted it, but also didn't want to bring up any complications to the code. On the Smart Wizard, I always try to implement features with maximum simplicity which helps to reduce the amount of bugs on different platforms and screens. Here is my initial analysis on the dynamic steps and I would like to know your valuable ideas and feedback on it.
After analysing the requirement,
adding new steps dynamically would bring complications in to the functionality and coding.
For example, we may have to pass parameters for the step header and content for the new step etc.
So I preferred to make this functionality work in other ways with hidden steps.
So for example we could include a step (say 4) between steps 3 and 5 but it is completely hidden.
And when you want to show it, you can call the public method stepState like $('#smartwizard').smartWizard("stepState", [4], "show");
and for hidng $('#smartwizard').smartWizard("stepState", [4], "hide");
stepState is also support enable, disable functionality
Also the option parameter hiddenSteps: [] will set the steps hidden on inital load.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There are many requests asking for the dynamic step implementation (#7).
I would like to implement the feature since most people wanted it, but also didn't want to bring up any complications to the code. On the Smart Wizard, I always try to implement features with maximum simplicity which helps to reduce the amount of bugs on different platforms and screens. Here is my initial analysis on the dynamic steps and I would like to know your valuable ideas and feedback on it.
After analysing the requirement,
adding new steps dynamically would bring complications in to the functionality and coding.
For example, we may have to pass parameters for the step header and content for the new step etc.
So I preferred to make this functionality work in other ways with hidden steps.
So for example we could include a step (say 4) between steps 3 and 5 but it is completely hidden.
And when you want to show it, you can call the public method
stepState
like$('#smartwizard').smartWizard("stepState", [4], "show");
and for hidng
$('#smartwizard').smartWizard("stepState", [4], "hide");
stepState
is also support enable, disable functionalityAlso the option parameter hiddenSteps: [] will set the steps hidden on inital load.
Beta Was this translation helpful? Give feedback.
All reactions