react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Pagination: Should force render pagination component

Open ghost opened this issue 4 years ago • 1 comments

Description

When data prop supplied to DataTable is an empty array, the Pagination component does not render.

In scenarios when user wants to handle pagination in the absence of data, it becomes impossible.

Describe the solution you'd like

Add a simple shouldShowPagination prop to force render pagination component regardless of any related prop

ghost avatar Mar 12 '20 20:03 ghost

Yea this should really be a feature - I will try to get this into the next minor release

jbetancur avatar Mar 19 '20 19:03 jbetancur