Coder Social home page Coder Social logo

Comments (4)

newbreedofgeek avatar newbreedofgeek commented on August 14, 2024

@arifsohail showNavigation is a setting for the entire StepZilla configuration. You can't use it for individual steps.

e.g.
<StepZilla steps={steps} showNavigation={false} />

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)
https://github.com/newbreedofgeek/react-stepzilla/blob/master/src/examples/Step2.js#L6

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.

.step3 ~ div.footer-buttons {display: none}

Hope that helps...

from react-stepzilla.

arifsohail avatar arifsohail commented on August 14, 2024

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
regards.

from react-stepzilla.

newbreedofgeek avatar newbreedofgeek commented on August 14, 2024

Good luck...

from react-stepzilla.

arifsohail avatar arifsohail commented on August 14, 2024

.step3 ~ div.footer-buttons {display: none} work exactly right with a particular step thanks a lot

from react-stepzilla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.