smartwizard
Version:
A modern and accessible step wizard plugin for jQuery
68 lines (67 loc) • 1.85 kB
TypeScript
import { WizardOptions, ContentDirection } from './types';
export declare class Wizard {
private options;
private readonly main;
private container;
private nav;
private steps;
private pages;
private progressbar;
private contentDirection;
private isInitialized;
private currentStepIndex;
private touchStartX;
private touchStartY;
constructor(element: JQuery<HTMLElement>, options?: Partial<WizardOptions>);
private setup;
private init;
private load;
private getInitialStep;
private setElements;
private setDisplayMode;
private setEvents;
private setNav;
private setAnchor;
private setButtons;
private setProgressbar;
private getShowable;
private isShowable;
private isEnabled;
private getStepByAnchor;
private setStepStyle;
private createAnchorScroll;
private setToolbar;
private createToolbar;
private getURLHashIndex;
private navigate;
private scrollAnchor;
private scrollCheck;
private keyNav;
private getStepDirection;
private getStepAnchor;
private getStepPage;
private transit;
private fixHeight;
private showStep;
private loadContent;
private getStepPosition;
private changeState;
goToStep(stepIndex: number, force: boolean): void;
next(): void;
prev(): void;
reset(): void;
setState(stepArray: number[], state: string): void;
unsetState(stepArray: number[], state: string): void;
setOptions(options: Partial<WizardOptions>): void;
getOptions(): WizardOptions;
getContentDirection(): ContentDirection;
getCurrentIndex(): number;
getStepInfo(): {
currentStep: number;
totalSteps: number;
};
loader(state: string): void;
adjustHeight(): void;
resetHeight(): void;
getWidth(): number;
}