-
Notifications
You must be signed in to change notification settings - Fork 62
[WC-3113] Dynamic pagination #1995
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
base: main
Are you sure you want to change the base?
Conversation
c56dde1 to
14f1f59
Compare
14f1f59 to
114f9fc
Compare
| if (values.useCustomPagination === false) { | ||
| hidePropertyIn(defaultProperties, values, "customPagination"); | ||
| } else { | ||
| hidePropertiesIn(defaultProperties, values, ["pagingPosition", "showPagingButtons"]); |
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.
Do we want to provide the way to set custom pagination position to top/bottom of the grid?
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 remember that we discussed that it will be at the bottom.
| settingsStorageEnabled: isSettingsStorageEnabled(props), | ||
| enableSelectAll: props.enableSelectAll, | ||
| keepSelection: props.keepSelection, | ||
| pagingPosition: props.pagingPosition, |
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 looks like a candidate to go to the pagination config, so we have single responsibility. As well as newly added requestTotalCount and constPageSize, it feels like they can be a responsibility of the pagination config.
What do you think?
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.
Yeah, agree, if it's not a big work on it I'll change.
Pull request type
Refactoring (e.g. file rename, variable rename, etc.)
New feature (non-breaking change which adds functionality)
Description
Add dynamic pagination to datagrid.