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

Mark steps as done. #131

Closed
DriverOp opened this issue Jul 10, 2021 · 2 comments
Closed

Mark steps as done. #131

DriverOp opened this issue Jul 10, 2021 · 2 comments
Labels

Comments

@DriverOp
Copy link

Currently there is no way to mark steps as done.
It would be nice if the "stepState" method also allowed to mark steps in that state, i.e. "done", and that this is reflected in the component interface.
Why do I ask for this feature.
Because in a wizard with many steps (+5) where the user is asked to complete a lot of data, it is necessary to implement an autosave of all the steps already completed.
So if the user leaves the wizard and then resumes it, it should tell him which steps he already completed and does not need to go back to them.

@space-bytes
Copy link

Currently there is no way to mark steps as done. It would be nice if the "stepState" method also allowed to mark steps in that state, i.e. "done", and that this is reflected in the component interface. Why do I ask for this feature. Because in a wizard with many steps (+5) where the user is asked to complete a lot of data, it is necessary to implement an autosave of all the steps already completed. So if the user leaves the wizard and then resumes it, it should tell him which steps he already completed and does not need to go back to them.

Add this case to the switch in the stepState function:

case"done":this._setCSSClass(t,"done");break;

@techlab
Copy link
Owner

techlab commented Jun 26, 2022

Added setState/unsetState public functions for all states. See doc: http://techlaboratory.net/jquery-smartwizard#func-setstate

@techlab techlab closed this as completed Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants