How to force table to be at the fixed row size even when there is less data
-
- Posts: 7
- Joined: 23 Jun 2018, 00:41
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?
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
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
-
- Posts: 7
- Joined: 23 Jun 2018, 00:41
I was hoping it was built it without having to do this. Thanks.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests