Last active
February 18, 2016 10:18
-
-
Save virtualvoid/9153b5b6b6347db3b579 to your computer and use it in GitHub Desktop.
jquery.steps TypeScript Definition File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../jquery/jquery.d.ts" /> | |
interface JQueryStepsLabelsOptions { | |
next?: string; | |
previous?: string; | |
finish?: string; | |
cancel?: string; | |
} | |
interface JQueryStepsOptions { | |
headerTag?: string; | |
bodyTag?: string; | |
transitionEffect?: string; | |
autoFocus?: boolean; | |
labels?: JQueryStepsLabelsOptions; | |
onInit?: (event: any, currentIndex: number) => void; | |
onStepChanging?: (event: any, currentIndex: number, newIndex: number) => void; | |
onStepChanged?: (event: any, currentIndex: number, priorIndex: number) => boolean; | |
onCanceled?: (event: any) => void; | |
onFinishing?: (event: any, currentIndex: number) => boolean; | |
onFinished?: (event: any, currentIndex: number) => void; | |
} | |
interface JQuerySteps { | |
(options: JQueryStepsOptions): JQuery; | |
(methodName: string, ...params: any[]): JQuery; | |
} | |
interface JQuery { | |
steps: JQuerySteps; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment