Comments (14)
"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.
@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.
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.
@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.
+1,
and please add custom class for actions wrapper or another elements
from react-stepzilla.
@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.
@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.
@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.
@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.
@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.
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.
When i click title in top navigation.
it doesn't work.
from react-stepzilla.
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.
@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.
How about that reset button?
Or can you just put the answers the null again?
from react-stepzilla.
Related Issues (20)
- Props to steps HOT 2
- [BUG] stepsNavigation allows you jump past steps that need validation HOT 1
- Module not found: Error: Can't resolve 'promise' in ' HOT 1
- Validation in a functional component (when using React Hooks) HOT 23
- Hide Particular Step in Navigation bar HOT 1
- Separate step-bar and form component HOT 1
- Accessing the typed in info HOT 5
- [BUG] Navigation Bar is plain HTML (No customization) HOT 1
- Hide or Inactivate Steps HOT 2
- The ref is not working, also does not work in case of Redux HOT 1
- Default styling not coming HOT 3
- [Feature] How to make it to have vertical stepper HOT 2
- [BUG] Wrong class applied to progtrckr li HOT 2
- On click UI navigation on top get undefined value HOT 1
- Major Release v7 HOT 1
- [BUG] progtrckr not being added on <li> HOT 2
- Show Navigation step On Load and Show Activated step as selected Node
- [Bug]: Form Validation with formik
- [Request] Upgrade to React 18.2 HOT 2
- save on last step
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-stepzilla.