Skip to content
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

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

Merged
merged 2 commits into from
Aug 22, 2024
Merged

Conversation

simonguo
Copy link
Member

@simonguo simonguo commented Aug 22, 2024

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: rsuite/rsuite#1727

Copy link

vercel bot commented Aug 22, 2024

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

Copy link

codesandbox-ci bot commented Aug 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant