mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Updated Request read me.
Added definitions for ZeroClipboard and twitter-bootstrap-wizard.
This commit is contained in:
@@ -0,0 +1,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/borisyankov/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) => bool;
|
||||
onPrevious?: (activeTab: any, navigation: any, previousIndex: number) => bool;
|
||||
onLast?: (activeTab: any, navigation: any, lastIndex: number) => bool;
|
||||
onFirst?: (activeTab: any, navigation: any, firstIndex: number) => bool;
|
||||
onTabClick?: (activeTab: any, navigation: any, currentIndex: number) => bool;
|
||||
onTabShow?: (activeTab: any, navigation: any, currentIndex: number) => bool;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user