Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
torrobinson committed May 28, 2021
1 parent 60ea7b3 commit d43668f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,24 @@ myStepper.init({
});
```

### Events

| Event Name | Parameters | Description |
| ------------- | --------------------- | ------------------------------ |
| onStepChanged | (stepNumber, stepObj) | Fired when the step is changed |

### Methods

| Method Name | Parameters | Description |
| ----------- | ---------- | --------------------------------------------------------------- |
| init | (options) | Initializes the control. See above examples for `options` usage |
| getStep | | Returns the step object of the current active step |
| setStep | (step) | Takes in the step number of the step to change to |
| stepUp | | Increments the current active step |
| stepDown | | Decrements the current active step |
| disableStep | (step) | Takes in the step number of a step and disables it from use |
| enableStep | (step) | Takes in the step number of a step and enables it for use |

### Styling

Styling can be overridden by passing in CSS values to the `style` object. All options are entirely optional.
Expand Down

0 comments on commit d43668f

Please sign in to comment.