Commit 07a8f97 1 parent e062863 commit 07a8f97 Copy full SHA for 07a8f97
File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 12
12
disableNext =this.disableNext
13
13
nextAction =this.nextAction
14
14
)
15
- }}
15
+ }}
16
+
17
+ <div {{ did-update this.updateTable @tableParams }} />
Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ export interface AkPaginationProviderSignature<R> {
36
36
totalItems : number ;
37
37
itemPerPageOptions : number [ ] ;
38
38
defaultLimit : number ;
39
+ tableParams ?: string [ ] ;
39
40
onItemPerPageChange : ( args : PaginationProviderActionsArgs ) => void ;
40
41
nextAction : ( args : PaginationProviderActionsArgs ) => void ;
41
42
prevAction : ( args : PaginationProviderActionsArgs ) => void ;
43
+ updateTable ?: ( ) => void ;
42
44
} ;
43
45
Blocks : {
44
46
default : [ PaginationProviderDefaultBlockHash < R > ] ;
@@ -124,6 +126,11 @@ export default class AkPaginationProviderComponent<R> extends Component<
124
126
) ;
125
127
}
126
128
129
+ @action
130
+ updateTable ( ) {
131
+ this . args . updateTable ?.( ) ;
132
+ }
133
+
127
134
@action
128
135
onItemPerPageChange ( selectedItem : PaginationItemPerPageOptionProps ) {
129
136
this . _updatePageItemSelectOptions ( Number ( selectedItem . value ) ) ;
Original file line number Diff line number Diff line change @@ -109,6 +109,13 @@ declare module '@glint/environment-ember-loose/registry' {
109
109
Return : void ;
110
110
} > ;
111
111
112
+ 'did-update' : ModifierLike < {
113
+ Args : {
114
+ Positional : [ callback : UnknownFnWithAnyArgType , params ?: unknown ] ;
115
+ } ;
116
+ Return : void ;
117
+ } > ;
118
+
112
119
'will-destroy' : ModifierLike < {
113
120
Args : {
114
121
Positional : [ UnknownFnWithAnyArgType ] ;
You can’t perform that action at this time.
0 commit comments