Coder Social home page Coder Social logo

Comments (14)

rickerd avatar rickerd commented on August 14, 2024 2

"You can hide the next/prev buttons"
I prefer not hiding the buttons but don't render the buttons. Now in the element inspector of the browser the div can be showed and messed with the form.

I hope this can be changed.

Also what i would like is a progress bar or a possibility to do this.

from react-stepzilla.

newbreedofgeek avatar newbreedofgeek commented on August 14, 2024 1

@rajikaimal at this stage

  • You can hide the next/prev buttons
  • Change the text of both the next/prev buttons
  • Use CSS to style the next/prev buttons
  • Add custom text to the last "action" next step (i.e. make the last action step save "Save")
  • Hide the top navigation (e.g step 1, step 2... )
  • Prevent navigation via the top navigation links

Check out the full list here:
https://github.com/newbreedofgeek/react-stepzilla/blob/master/README.md

And basically you can style all the wrappers using CSS, the example CSS shows you how:
https://github.com/newbreedofgeek/react-stepzilla/blob/master/src/css/main.css

@romanlex you can pretty much target all the StepZilla wrapper components using existing CSS classes. The actual "Steps" are your own custom components so you can use your own CSS classes.

e.g. All the green items can be targeting using CSS, the blue item is your own Step components so you control the what CSS classes you use.
screen shot 2017-04-20 at 10 12 09 am

If there is anything specific you need and can provide a strong use case, then please raise it and I'll add it as an enhancement.

Bets of luck.

from react-stepzilla.

newbreedofgeek avatar newbreedofgeek commented on August 14, 2024 1

@rajikaimal let's keep this open for now. So others can list any ideas/requests and we can collaboratively decide on new customisations.

from react-stepzilla.

romanlex avatar romanlex commented on August 14, 2024

+1,
and please add custom class for actions wrapper or another elements

from react-stepzilla.

wassimz avatar wassimz commented on August 14, 2024

@newbreedofgeek
Is it possible to add new button like for example a reset button that clear everything before finalyzing and go back to step 1

from react-stepzilla.

rajikaimal avatar rajikaimal commented on August 14, 2024

@newbreedofgeek Great, thanks for the quick reply. Feel free to close this issue if you want to. (unless you want to continue a discussion here with others for queries related to this question)

from react-stepzilla.

newbreedofgeek avatar newbreedofgeek commented on August 14, 2024

@wassimz you could implement a reset button inside each . And position it using CSS to sit inside the footer.

When a user clicks on the Reset button your can clear your store state and then call "this.props.jumpToStep(0)" to send the user back to the first step. This this.props.jumpToStep() utility is injected into all StepZilla Steps.

from react-stepzilla.

wassimz avatar wassimz commented on August 14, 2024

@newbreedofgeek
Thanks for your quick response. Can we access the jumpToStep from the main components (not from steps) ?? I need to reset the steps when a user refresh or click on the steps links.

from react-stepzilla.

newbreedofgeek avatar newbreedofgeek commented on August 14, 2024

@wassimz at this time you can't access it from the "host" component, you can only access it from inside the "Step" components.

If you really want to "reset" from the host component just re-render the host component and it will reset.

from react-stepzilla.

slashwhatever avatar slashwhatever commented on August 14, 2024

Would be great to be able to supply custom components as the Next and Previous buttons. I'd like to be able to use glyph icons instead.

Quick question on points above by @wassimz - are you saying we can call jumpToStep manually from inside our step component? Reason I ask is that for some steps, I want the action of a user clicking an element inside the step to move to the next step.

It would also be really nice to have hooks into the navigation action from outside so you could create a completely custom navigation component without worrying about whether you can push the existing CSS hard enough to get what you need. For example, I'm currently trying to have a wizard where the prev and next buttons are to the left and right side of the viewport. While I'm sure I can get close to what I want, I'm not sure I can get 100% of the way there if bound by existing markup and CSS hooks.

from react-stepzilla.

CleverMobile2811 avatar CleverMobile2811 commented on August 14, 2024

When i click title in top navigation.
it doesn't work.

from react-stepzilla.

osdiab avatar osdiab commented on August 14, 2024

I would love ability to use a custom button component. For my project we have a standardized button component used all over the place, passing a class name isn't convenient since it's written with styled-components and so the classname is generated at not easily accessible—but if I could just wrap that button with something that takes in whatever Stepzilla uses, that would be very cool :)

from react-stepzilla.

Bhushan001 avatar Bhushan001 commented on August 14, 2024

@newbreedofgeek I think some kind of nesting approach here would really help. Like first step can spawn multiple paths according to users selection.

from react-stepzilla.

rickerd avatar rickerd commented on August 14, 2024

How about that reset button?
Or can you just put the answers the null again?

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.