SimplePagination: fix onPageClick definition

This commit is contained in:
Neil Stalker
2013-09-01 10:36:01 +01:00
parent 00f6071423
commit 7d34352d8a
2 changed files with 15 additions and 1 deletions

View File

@@ -11,6 +11,20 @@ $(function () {
});
});
$(function () {
$(selector).pagination({
onPageClick: (page) => {
}
});
});
$(function () {
$(selector).pagination({
onPageClick: (page, event) => {
}
});
});
$(function () {
$(selector).pagination('selectPage', 1);
});

View File

@@ -18,7 +18,7 @@ interface SimplePaginationOptions {
nextText?: string;
cssStyle?: string;
selectOnClick?: boolean;
onPageClick?: (page?: number, event?: any) => void;
onPageClick?: (page: number, event: any) => void;
onInit?: () => void;
}