ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
93.39k stars 51.04k forks source link

Table Sticky Pagination positioning #52648

Open daveyreyn opened 6 days ago

daveyreyn commented 6 days ago

What problem does this feature solve?

page selection is dependent on the amount of rows you have in the table, and you are unable to set it to the actual height of the table. This results in inconsistent positioning that cannot be resolved without implementing your own pagination. we already have the ability to fix the header, as well as add set footer, why does pagination not have this feature as well?

What does the proposed API look like?

a new value for the sticky prop, that sets pagination as fixed based off of table height

petercat-assistant[bot] commented 6 days ago

The issue you've raised is a feature request for Ant Design's Table component. The problem you're facing is that the pagination positioning is inconsistent because it depends on the number of rows in the table. You want the pagination to be fixed based on the table's height, similar to how the header can be fixed.

The proposed solution is to introduce a new value for the sticky prop that allows the pagination to be fixed based on the table's height. This would provide a more consistent pagination positioning without the need to implement custom pagination.

Your feature request has been noted and will be considered by the team. Thank you for your suggestion!

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.