Skip to content

Commit

Permalink
fix: updatePagingStatusFromView() should partial PagingInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Jan 9, 2024
1 parent e8fd4c8 commit 28198a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slick.grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4406,7 +4406,7 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
* Update paging information status from the View
* @param {PagingInfo} pagingInfo
*/
updatePagingStatusFromView(pagingInfo: PagingInfo) {
updatePagingStatusFromView(pagingInfo: Pick<PagingInfo, 'pageSize' | 'pageNum' | 'totalPages'>) {
this.pagingActive = (pagingInfo.pageSize !== 0);
this.pagingIsLastPage = (pagingInfo.pageNum === pagingInfo.totalPages - 1);
}
Expand Down

0 comments on commit 28198a8

Please sign in to comment.