Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit c150631

Browse files
committed
Update docs
Add size jsfiddle example
1 parent 343daf1 commit c150631

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Basic [demo](https://jsfiddle.net/bt5dhqtf/97/)
1616
Other demos:
1717
* [Squared steps](https://jsfiddle.net/bt5dhqtf/98/)
1818
* [Tabbed steps](https://jsfiddle.net/bt5dhqtf/99/)
19+
* [Sizing](https://jsfiddle.net/CristiJ/bt5dhqtf/924/)
1920
* [Step index](https://jsfiddle.net/bt5dhqtf/100/) Start at any step. Note: start-index is zero-based and the count starts at 0
2021
* [Custom button and title text](https://jsfiddle.net/bt5dhqtf/101/)
2122
* [Custom title slot](https://jsfiddle.net/bt5dhqtf/102/)

docs/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ props: {
7070
type: String,
7171
default: 'Finish'
7272
},
73+
stepSize: {
74+
type: String,
75+
default: 'md',
76+
validator: (value) => {
77+
let acceptedValues = ['xs', 'sm', 'md', 'lg']
78+
return acceptedValues.indexOf(value) !== -1
79+
}
80+
},
7381
/***
7482
* Sets validation (on/off) for back button. By default back button ignores validation
7583
*/
@@ -142,6 +150,8 @@ Vue-form-wizard emits certain events when certain actions happen inside the comp
142150
* **on-loading** Called whenever an async `before-change` is executed. This event is emitted before executing `before-change` and after finishing execution of `before-change` method. `on-loading` is emitted together with a Boolean value. `this.$emit('on-loading', value)`
143151
* **on-validate** Called whenever the execution of a `before-change` method is completed. The event sends along a Boolean which represents the validation result as well as an int with te tab index. `this.$emit('on-validate', validationResult, this.activeTabIndex)`
144152
* **on-error** Called when `before-change` is a promised and is rejected with a message. The message is passed along `this.$emit('on-error', error)` See async validation fiddle
153+
* **on-change** Called upon step changes. Has prevIndex and nextIndes as params. `this.$emit('on-change', prevIndex, nextIndex)`
154+
145155
## Slots
146156
* **Default** - Used for tab-contents
147157
* **title** - Upper title section including sub-title

0 commit comments

Comments
 (0)