mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
// Type definitions for bootstrap.paginator
|
|
// Project: https://github.com/lyonlai/bootstrap-paginator
|
|
// Definitions by: derikwhittaker <https://github.com/derikwhittaker/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="jquery"/>
|
|
|
|
interface PaginatorOptions {
|
|
alignment?: string;
|
|
size?: string;
|
|
itemContainerClass?: (type: string, page: number, current: number) => string;
|
|
currentPage?: number;
|
|
numberOfPages?: number;
|
|
totalPages?: number;
|
|
pageUrl?: (type: string, page: number, current: number) => string;
|
|
shouldShowPage?: boolean;
|
|
itemTexts?: (type: string, page: number, current: number) => string;
|
|
tooltipTitles?: (type: string, page: number, current: number) => string;
|
|
useBootstrapTooltip?: boolean;
|
|
bootstrapTooltipOptions?: {};
|
|
bootstrapMajorVersion?: number;
|
|
onPageClicked?: (event: any, originalEvent: any, type: string, page: number) => void;
|
|
onPageChanged?: (event: any, originalEvent: any, type: string, page: number) => void;
|
|
}
|
|
|
|
interface JQuery {
|
|
bootstrapPaginator(options?: PaginatorOptions): JQuery;
|
|
}
|