-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Include a Cancel Button along with the Back/Next Button so I can Exit the Process #91
Comments
@priyankabachu there is no Cancel button by default. Do you mean Back button? Back: You can hook into the Next: The isValidated() method can prevent moving front until certain conditions are met. Step Validation Pls provide more details on what you are trying to do.. |
@newbreedofgeek thanks for explaining much clearly :) |
@priyankabachu OK, I see what you mean now. Unfortunately with StepZilla you are only given 2 buttons at the moment. This may change in the future but we have no plans to change this behaviour at this stage. I'll keep this ticket open as "UpVotes Needed" so people can upvote if they like this. One way you can do this is to put a "Cancel" button in each and use CSS to position it in the "Footer" next to Back/Next - This is not ideal but it's how I would do it. Remember you control the full CSS of StepZilla so you can do anything with positioning. Good luck. |
@newbreedofgeek ok Thankyou! |
I'd like to see this as well, or maybe even a way of overriding/injecting custom buttons into the step navigation. |
The only way i found to do this, its inserting a button by myself on useEffect event const parent = document.querySelector("div.multi-step div.footer-buttons");
const button = document.createElement("button");
button.classList.add(...["button", "is-danger", "pull-left"]);
button.innerHTML = "Cancelar";
button.id = "btnCancel";
parent.prepend(button); It's a very dirty way to handle it, but i need a cancel button. Edit: on onClick event you have to handle the redirection by yourself. |
I want to call a function on cancel button of each step.
Can this be possible?
The text was updated successfully, but these errors were encountered: