rsuite / rsuite-table

A React table component.
https://table.rsuitejs.com/
MIT License
725 stars 133 forks source link

feat(Table): add support for `maxHeight` prop #498

Closed simonguo closed 2 months ago

simonguo commented 2 months ago

autoHeight will automatically calculate the height of the table according to the number of data rows, and there will be no vertical scroll bar. You can set the maximum height through maxHeight. When the data exceeds the maximum height, a scroll bar will appear.

<Table autoHeight maxHeight={600} >

Example: https://rsuite-table-git-feat-table-maxheight-rsuite.vercel.app/#automatic-height

Requirement comes from: https://github.com/rsuite/rsuite/issues/1727

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rsuite-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 10:34am
codesandbox-ci[bot] commented 2 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.