Tyler.z.yang Tyler.z.yang - 1 month ago 15
React JSX Question

Fixed data table for pagination

How to implement the pagination with

fixed-data-table
?

I want to implement the pagination with
fixed-data-table
. According to the document, we must set the height to it so that i can calculate the
visible zone
to show the rows.

Is there a way to do that? Any tricky way are also welcome. Thx.

Answer

I just found a way to do that.

Set maxHeight to Table. According to the fixed-data-table document, we must set either height or maxHeight. My bad. It's better to read more documents.

Another thing is, if we are using the responsive-fixed-data-table then it's not possible to set the maxHeight for now. Because this wrapper simply set height: 100%.

I will send a PR later.