forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.bootstrap.wizard.d.ts
48 lines (43 loc) · 1.59 KB
/
jquery.bootstrap.wizard.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Type definitions for twitter-bootstrap-wizard
// Project: https://github.com/VinceG/twitter-bootstrap-wizard
// Definitions by: Blake Niemyjski <https://github.com/niemyjski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface WizardOptions {
tabClass?: string;
nextSelector?: string;
previousSelector?: string;
firstSelector?: string;
lastSelector?: string;
onShow?: (activeTab: any, navigation: any, nextIndex: number) => void;
onInit?: (activeTab: any, navigation: any, currentIndex: number) => void;
onNext?: (activeTab: any, navigation: any, nextIndex: number) => boolean;
onPrevious?: (activeTab: any, navigation: any, previousIndex: number) => boolean;
onLast?: (activeTab: any, navigation: any, lastIndex: number) => boolean;
onFirst?: (activeTab: any, navigation: any, firstIndex: number) => boolean;
onTabClick?: (activeTab: any, navigation: any, currentIndex: number) => boolean;
onTabShow?: (activeTab: any, navigation: any, currentIndex: number) => boolean;
}
interface Wizard {
next(): void;
previous(): void;
first(): void;
last(): void;
currentIndex(): number;
firstIndex(): number;
lastIndex(): number;
getIndex(element: any): number;
nextIndex(): number;
previousIndex(): number;
navigationLength(): number;
activeTab(): any;
nextTab(): any;
previousTab(): any;
show(index: number): any;
}
interface JQuery {
bootstrapWizard(options?: WizardOptions): Wizard;
}
interface JQueryStatic {
bootstrapWizard: Wizard;
}