Using DataTable inside Splitter

UI Components for React
Post Reply
ericfreeman
Posts: 3
Joined: 20 Jul 2021, 15:29

26 Jul 2021, 14:49

i've been trying to use Splitter to shrink the DataTable, cant figure out if its possible

here's the bear minimum: https://codesandbox.io/s/hardcore-booth ... rsTable.js

played around with styles, didnt find a way that works while allowing scroll through the entirety of the table.

tried adding props:
scrollable scrollHeight="100%"
yet even that doesnt work

any idea's?


EDIT: ended up using https://www.npmjs.com/package/@geoffcox/react-splitter instead and using it to calculate height percentage, and placing that percentage into scrollHeight

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests