@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
20 lines (19 loc) • 779 B
TypeScript
import { Ref } from "vue";
import { Step } from '../../../step';
export declare function useWizard(steps: Step[], currentStepIndex: Ref<number>): {
currentPageId: import("vue").ComputedRef<string>;
currentStepIndex: Ref<number, number>;
wizardData: Ref<any, any>;
setWizardData: (data: any) => void;
getWizardData: () => any;
gotoPreviousStep: () => void;
gotoNextStep: () => void;
setCurrentStep: (index: number) => void;
setDataByPageId: (pageId: string, data: any) => void;
getDataByPageId: (pageId: string) => any;
getCurrentPageData: () => any;
getPreviousPageDataByPageId: (pageId: string) => any;
getNextPageDataByPageId: (pageId: string) => any;
getPreviousPageId: () => string;
getNextPageId: () => string;
};