Skip to content

Commit d09245e

Browse files
authored
Merge pull request #28 from GlobalHive/development
Fix for issue #27
2 parents 4f0c9bc + 3996d64 commit d09245e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/guide/props.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
VueJS Tour is written for Vue 3. There are no plans to support Vue 2.x
55
:::
66

7-
| Prop | Type | Default | Required | Description |
8-
|:-------------:|:---------:|:--------------------------------------------------------------:|:--------:|-----------------------------------------------------------------------------|
9-
| `steps` | `Array` | `undefined` | `true` | An array of steps to be used in the tour. |
10-
| `autoStart` | `Boolean` | `false` | `false` | If `true`, the tour will start automatically when the component is mounted. |
11-
| `startDelay` | `Number` | `0` | `false` | If set, the tour will start after x miliseconds. |
12-
| `highlight` | `Boolean` | `false` | `false` | If `true`, the target will get highlighted. |
13-
| `buttonLabel` | `Object` | `{ next: "Next", prev: "Back", finish: "Finish", skip: "Skip"}` | `false` | The labels used for the buttons. |
7+
| Prop | Type | Default | Required | Description |
8+
|:--------------:|:---------:|:--------------------------------------------------------------:|:--------:|-----------------------------------------------------------------------------|
9+
| `steps` | `Array` | `undefined` | `true` | An array of steps to be used in the tour. |
10+
| `autoStart` | `Boolean` | `false` | `false` | If `true`, the tour will start automatically when the component is mounted. |
11+
| `startDelay` | `Number` | `0` | `false` | If set, the tour will start after x miliseconds. |
12+
| `highlight` | `Boolean` | `false` | `false` | If `true`, the target will get highlighted. |
13+
| `buttonLabels` | `Object` | `{ next: "Next", prev: "Back", finish: "Finish", skip: "Skip"}` | `false` | The labels used for the buttons. |
1414

1515
## Example
1616

src/components/VTour.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</slot>
66
<slot name="actions" v-bind="{ endTour, nextStep, prevStep, step }">
77
<div class="vjt-actions">
8-
<button type="button" @click.prevent="endTour">Skip</button>
8+
<button type="button" @click.prevent="endTour" v-text="props.buttonLabels.skip"></button>
99
<button v-if="step.currentStep > 0" type="button" v-text="props.buttonLabels.prev" @click.prevent="prevStep"></button>
1010
<button type="button" v-text="getNextText" @click.prevent="nextStep"></button>
1111
</div>

0 commit comments

Comments
 (0)