-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pagination issue in ExtensibleTableComponent #19203
Conversation
private subscribeToPage() { | ||
const sub = this.table.page.subscribe(({ offset }) => { | ||
this.list.page = offset; | ||
this.table.offset = offset; | ||
}); | ||
this.subscription.add(sub); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change causing broken pagination now. Whether the _filter
is empty or not, pagination does not work on the ngx-datatable
component.
Reproduce
Just try to paginate any ngx-datatable
that works with [list]
, and nothing happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have moved pagination functionality to ngx-datatable's input, output
.
https://github.com/abpframework/abp/pull/19203/files#diff-0c5913f6f68aa1645a0b5aa522f62c0b7e5f48657e8398c2f625926b138f847dR6-R7
So if you are using ngx-datatable directly. You should add the code below to your ngx-datatable element
[offset]="list?.page"
(page)="list.page = $event.offset"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a patch version (8.0.x) should not contain a breaking change. I'm sure you can find a way that supports both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right. It's a breaking change. I didn't realise that people uses ngx-datatable directly.
Thanks for your attention.
Resolves #19194
@oykuermann this PR is important for all datagrid, can you please make detailed test thank you