Tyler.z.yang Tyler.z.yang - 1 year ago 147
React JSX Question

Fixed data table for pagination

How to implement the pagination with


I want to implement the pagination with
. 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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download