-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Enable customization of CatalogTable pagination #27558
Enable customization of CatalogTable pagination #27558
Conversation
Signed-off-by: Tyler Davis <tylerd@canva.com>
Signed-off-by: Tyler Davis <tylerd@canva.com>
Changed Packages
|
@@ -39,9 +39,9 @@ export function CursorPaginatedCatalogTable(props: PaginatedCatalogTableProps) { | |||
columns={columns} | |||
data={data} | |||
options={{ | |||
paginationPosition: 'both', | |||
...options, |
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 it makes more sense to put this at the bottom of the list so that all of them can be overridden, but it seemed like it was intentional based on the comment below this line.
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.
yep, correct. But your change makes sense to me!
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.
Thank you @tylerd-canva 🙏
@@ -39,9 +39,9 @@ export function CursorPaginatedCatalogTable(props: PaginatedCatalogTableProps) { | |||
columns={columns} | |||
data={data} | |||
options={{ | |||
paginationPosition: 'both', | |||
...options, |
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.
yep, correct. But your change makes sense to me!
Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com> Signed-off-by: Tyler Davis <tylerd@canva.com>
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.
Let's go with this! 🎉
Thank you for contributing to Backstage! The changes in this pull request will be part of the |
Hey, I just made a Pull Request!
I was looking to make use of one of the server side paginated CatalogTables but realised neither of them allowed you to remove the awful (IMHO) top pagination buttons. For
CursorPaginatedCatalogTable
I left the...options
at the conservative spot above the other pagination options since it seemed deliberate to not allow overriding them.✔️ Checklist
Signed-off-by
line in the message. (more info)