Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 39be8239d2
Fetching contributors…

Cannot retrieve contributors at this time

107 lines (83 sloc) 2.327 kB
// Type definitions for Bootstrap 2.2
// Project: http://twitter.github.com/bootstrap/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface ModalOptions {
backdrop?: bool;
keyboard?: bool;
show?: bool;
remote?: string;
}
interface ModalOptionsBackdropString {
backdrop?: string; // for "static"
keyboard?: bool;
show?: bool;
remote?: string;
}
interface ScrollSpyOptions {
offset?: number;
}
interface TooltipOptions {
animation?: bool;
html?: bool;
placement?: any;
selector?: string;
title?: any;
trigger?: string;
delay?: any;
}
interface PopoverOptions {
animation?: bool;
html?: bool;
placement?: any;
selector?: string;
trigger?: string;
title?: any;
content?: any;
delay?: any;
}
interface CollapseOptions {
parent?: any;
toggle?: bool;
}
interface CarouselOptions {
interval?: number;
pause?: string;
}
interface TypeaheadOptions {
source?: any;
items?: number;
minLength?: number;
matcher?: () => any;
sorter?: () => any;
highlighter?: () => any;
}
interface AffixOptions {
offset?: any;
}
interface JQuery {
modal(options?: ModalOptions): JQuery;
modal(options?: ModalOptionsBackdropString): JQuery;
modal(command: string): JQuery;
dropdown(): JQuery;
dropdown(command: string): JQuery;
scrollspy(command: string): JQuery;
scrollspy(options?: ScrollSpyOptions): JQuery;
tab(): JQuery;
tab(command: string): JQuery;
tooltip(options?: TooltipOptions): JQuery;
tooltip(command: string): JQuery;
popover(options?: PopoverOptions): JQuery;
popover(command: string): JQuery;
alert(): JQuery;
alert(command: string): JQuery;
button(): JQuery;
button(command: string): JQuery;
collapse(options?: CollapseOptions): JQuery;
collapse(command: string): JQuery;
carousel(options?: CarouselOptions): JQuery;
carousel(command: string): JQuery;
typeahead(options?: TypeaheadOptions): JQuery;
affix(options?: AffixOptions): JQuery;
}
Jump to Line
Something went wrong with that request. Please try again.