How to force table to be at the fixed row size even when there is less data

UI Components for React
Post Reply
travelbug42
Posts: 7
Joined: 23 Jun 2018, 00:41

26 Jun 2018, 02:42

If the first or last page contains less data than the row size, how do you display the empty rows or prevent the table from getting smaller?

rvw
Posts: 12
Joined: 01 Jun 2018, 10:48

26 Jun 2018, 13:25

The easiest solution for you would be to add empty objects to your array until you have the right amount of items.

Split your array into chunks with the size of your row length, check if the last chunk's length equals row length. If not, add empty objects until the chunk equals row length

travelbug42
Posts: 7
Joined: 23 Jun 2018, 00:41

26 Jun 2018, 20:51

I was hoping it was built it without having to do this. Thanks.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests