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

Add supported methods specified in documentation to FormWizard type definitions.

This commit is contained in:
Charles Salmon
2019-02-28 11:58:08 +13:00
parent 55a2bc40ab
commit 5e50036c4c
+25 -1
View File
@@ -101,7 +101,6 @@ export declare class Wizard {
*/
stepSize: StepSizeType
/**
* Name of the transition when transitioning between steps.
*
@@ -115,4 +114,29 @@ export declare class Wizard {
* Default value: 0
*/
startIndex: number
/**
* Resets the wizard to its initial state.
*/
reset: () => void
/**
* Activates all steps, as if the user has navigated to each of them.
*/
activateAll: () => void
/**
* Navigates to the next tab.
*/
nextTab: () => void
/**
* Navigates to the previous tab.
*/
prevTab: () => void
/**
* Navigates from one tab to another. Note that this method does not trigger validaiton methods.
*/
changeTab: (oldIndex: number, newIndex: number, emitChangeEvent?: boolean) => boolean
}