rsuite / rsuite-table

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

feat(Table): support get scroll position of the table through ref #473

Closed simonguo closed 10 months ago

simonguo commented 10 months ago

https://github.com/rsuite/rsuite-table/issues/471

const table = useRef();

return (
  <Table ref={table} >
  ...
  </Table>
)

// The scroll position of the table
table.current?.scrollPosition
vercel[bot] commented 10 months ago

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

Name Status Preview Updated (UTC)
rsuite-table ✅ Ready (Inspect) Visit Preview Nov 16, 2023 1:19pm
codesandbox-ci[bot] commented 10 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.

Latest deployment of this branch, based on commit b4c294f20c6d8f6ad3916c77be65c808ab786899:

Sandbox Source
React Configuration
Vanilla Configuration