UNPKG

@front10/landing-page-book

Version:
25 lines (23 loc) 2.2 kB
# Wizard [![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) ## Properties | </br>Name | </br>Type | </br>Summary | </br>Default | | ---- | ---- | ---- | ---- | | backButtonCls | `string` | Specify the back button class. | `'btn btn-primary pull-left'` | | backButtonText | `string` | Specify the back button text. | `'Back'` | | className | `string` | Class name of header. | `''` | | contentAlign | `string` | Specify the align of wizard components. Can be <code>'left'</code>, <code>'right'</code> and <code>'center'</code> | `'left'` | | dontValidate | `bool` | Dev control to disable validation rules called in step components. | `true` | | hocValidationAppliedTo | `arrayOf` | Its recommended that you use basic javascript validation. | `[]` | | nextButtonCls | `string` | Specify the next button class. | `'btn btn-primary pull-right'` | | nextButtonText | `string` | Specify the next button text. | `'Next'` | | nextTextOnFinalActionStep | `string` | Specify what the next button text should be in the step before the last. | `'Next'` | | onStepChange | `func` | Called when 'Back' or 'Next' button is clicked. | `() => {}` | | prevBtnOnLastStep | `bool` | Show or hide the previous button in the last step (maybe the last step is a thank you message and you don't want them to go back). | `true` | | preventEnterSubmission | `bool` | By default if you hit the Enter key on any element it validates the form and moves to next step if validation passes. Use this to prevent this behaviour. | `true` | | showHeader | `bool` | Show or hide the header with steps. | `true` | | showHeaderBorder | `bool` | Show or hide the header bottom border. | `true` | | showNavigation | `bool` | Hide or show Next and Previous Buttons at the bottom. | `true` | | startAtStep | `number` | Specify what step to start from in the case you need to skip steps (send in a 0 based index for the item in the steps array. e.g. 2 will load <Step3 /> initially). | `0` | | steps<font color="red">*</font> | `arrayOf` | List of steps. | | | style | `objectOf` | Css style applied to the component | `null` |