Files
DefinitelyTyped/jquery.simplePagination/jquery.simplePagination.d.ts
T

28 lines
796 B
TypeScript

// Type definitions for jQuery simplePagination.js v1.4
// Project: https://github.com/flaviusmatis/simplePagination.js
// Definitions by: Natan Vivo <https://github.com/nvivo/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface SimplePaginationOptions {
items?: number;
itemsOnPage?: number;
pages?: number;
displayedPages?: number;
edges?: number;
currentPage?: number;
hrefTextPrefix?: string;
hrefTextSuffix?: string;
prevText?: string;
nextText?: string;
cssStyle?: string;
selectOnClick?: boolean;
onPageClick?: (interger) => void;
onInit?: () => void;
}
interface JQuery {
pagination(options?: SimplePaginationOptions): JQuery;
}