-
Notifications
You must be signed in to change notification settings - Fork 184
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
Button text based on step #113
Comments
here is the part of docs that explains that:
So, because of this line:
Previous button will have 'red' background and text will say: 'Before' |
Ok but this will set <MultiStep activeStep={0} active step as 0 or what ever I set. What I want it let us say if I am on step 2 I would like change the button text as Submit. Also the last page button was disable by default how to do that. I am using the component by installing it from packages is it similar to the file you have in MultiStep.tsx or do I need to externally add that as per in the demo in to SRC folder? Here is the one I am trying out |
Here is the code https://codesandbox.io/s/59gqjg If you check the last step continue was disabled where I need to button text to be submit and enabled |
I see... Sorry, I misunderstood your issue, although it was clearly stated :) |
Thank you |
any luck on this? |
yes, there is some progress, will try to finish it next weekend, only time I can work on it :( |
No problem just waiting for the fix to be available |
ok, I have a working sample, you can see the demo here (and link to the code is below): submit-demo.movUnfortunately, while doing this< I realized that it is better for MultiStep to stay focused on its only concern: navigation and leave it to child components to execute their own logic/actions... Alternatively, you could fork this pre-release and see if it works for your case better, but, just a warning, for my taste things are getting a bit too complicated with back and forth between the multistep and child components. The code that enabled 'Submit' functionality, will be removed in the following commits |
Thanks for the update, I will check and let you know |
no :( |
closing - but will reconsider improvements when v6 gets a little bit more complete |
I want to change the button text dynamically based on the step I am on how to do that
The text was updated successfully, but these errors were encountered: