2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-23 14:50:33 +03:00

Add method to activate all steps

Add unit tests for router exampples
Closes #113
This commit is contained in:
cristijora
2017-11-28 17:57:49 +02:00
parent 6bf4d4beeb
commit 220745ad06
5 changed files with 115 additions and 6 deletions
+6
View File
@@ -264,6 +264,12 @@
})
this.navigateToTab(0)
},
activateAll () {
this.maxStep = this.tabs.length - 1
this.tabs.forEach((tab) => {
tab.checked = true
})
},
navigateToTab (index) {
let validate = index > this.activeTabIndex
if (index <= this.maxStep) {