mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
SimplePagination: fix onPageClick definition
This commit is contained in:
@@ -11,6 +11,20 @@ $(function () {
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination({
|
||||
onPageClick: (page) => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination({
|
||||
onPageClick: (page, event) => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('selectPage', 1);
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user