Skip to content

Commit

Permalink
Pagination Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SmitGala committed Mar 6, 2025
1 parent e062863 commit 8130936
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/ak-pagination-provider/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
disableNext=this.disableNext
nextAction=this.nextAction
)
}}
}}

<div {{did-update @updateTable this.args.tableParams}} />
2 changes: 2 additions & 0 deletions app/components/ak-pagination-provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ export interface AkPaginationProviderSignature<R> {
totalItems: number;
itemPerPageOptions: number[];
defaultLimit: number;
tableParams: string[];
onItemPerPageChange: (args: PaginationProviderActionsArgs) => void;
nextAction: (args: PaginationProviderActionsArgs) => void;
prevAction: (args: PaginationProviderActionsArgs) => void;
updateTable: () => void;
};
Blocks: {
default: [PaginationProviderDefaultBlockHash<R>];
Expand Down
7 changes: 7 additions & 0 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ declare module '@glint/environment-ember-loose/registry' {
Return: void;
}>;

'did-update': ModifierLike<{
Args: {
Positional: [callback: UnknownFnWithAnyArgType, params?: unknown];
};
Return: void;
}>;

'will-destroy': ModifierLike<{
Args: {
Positional: [UnknownFnWithAnyArgType];
Expand Down

0 comments on commit 8130936

Please sign in to comment.