-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
How to Hide navigation buttons in some steps #28
Comments
@arifsohail showNavigation is a setting for the entire StepZilla configuration. You can't use it for individual steps. e.g. Not sure why you want to turn off/on the next and previous buttons for certain steps but at this stage this is not supported by StepZilla via Config (as its a wizard component and Next and Prev buttons are the basic elements of this) BUT... You can achieve this using targeted CSS queries: Make sure you give your elements classNames like Step1, Step2, Step3 etc (You can see this in the example code) Then in your CSS file target the "footer-buttons" element of the Step you want to hide it and set it to hidden. For e.g if you want to hide the buttons in Step3 you can use this CSS query.
Hope that helps... |
thanks a lot, actually i was converting a pre build wizard into steps zilla components. ur component is working fine and producing my desired results. i need to revise the logic of steps i define |
Good luck... |
.step3 ~ div.footer-buttons {display: none} work exactly right with a particular step thanks a lot |
hi, i have a form and i want next and previous navigation buttons in some steps, while in some steps i dont want them to show,
i defined showNavigation false in step 2 as follow
i did following but it didnt work
const steps=[
{name: 'Step 1', component: <Step1 getStore={() => (this.getStore())} /> },
{name: 'Step 2', component: <Step2 showNavigation={false} getStore={() => (this.getStore())} />},
{name: 'Step 3', component: <Step3 getStore={() => (this.getStore())} />}
]
when i pass it in
it removes navigation altogether
but it is showing next button in step 2 and there is no syntax error
regards
The text was updated successfully, but these errors were encountered: