2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-18 09:40:32 +03:00

Merge pull request #242 from ksidibe/dom-id-functionality

Allow user to define the DOM id of the wizard.
This commit is contained in:
Cristi Jora
2018-05-18 12:00:28 +03:00
committed by GitHub
+5 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="vue-form-wizard" :class="[stepSize, {vertical: isVertical}]" @keyup.right="focusNextTab"
<div :id="id ? id : ''" class="vue-form-wizard" :class="[stepSize, {vertical: isVertical}]" @keyup.right="focusNextTab"
@keyup.left="focusPrevTab">
<div class="wizard-header" v-if="$slots['title']">
<slot name="title">
@@ -84,6 +84,10 @@
WizardStep
},
props: {
id: {
type: String,
default: 'fw_' + (new Date()).valueOf()
},
title: {
type: String,
default: 'Awesome Wizard'