forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.paginator.d.ts
29 lines (26 loc) · 1.02 KB
/
bootstrap.paginator.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
// Type definitions for bootstrap.paginator
// Project: https://github.com/lyonlai/bootstrap-paginator
// Definitions by: derikwhittaker <https://github.com/derikwhittaker/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface PaginatorOptions{
alignment?: string;
size?: string;
itemContainerClass?: (type, page, current) => string;
currentPage?: number;
numberOfPages?: number;
totalPages?: number;
pageUrl?: (type, page, current) => string;
shouldShowPage?: boolean;
itemTexts?: (type:string, page:number, current:number) => string;
tooltipTitles?: (type, page, current) => string;
useBootstrapTooltip?: boolean;
bootstrapTooltipOptions?: {};
bootstrapMajorVersion?: number;
onPageClicked?: (event, originalEvent, type, page) => void;
onPageChanged?: (event, originalEvent, type, page) => void;
}
interface JQuery {
bootstrapPaginator(): JQuery;
bootstrapPaginator(options: PaginatorOptions): JQuery;
}