github jbetancur/react-data-table-component v1.5.1

latest releases: v7.6.2, v7.6.1, v7.6.0...
5 years ago

Pagination Bug Fixes

#88

  • paginationServer is a new property that allows pagination to work correctly when using server-side pagination. Use it when you are paging data from a server only. It was always assumed that the data needed to be sliced, instead, this now only happens for client-side pagination where the total records are typically in the data set.

Make sure that when using server-side pagination that you always use the paginationTotalRows property. Your target REST API should return a total record count (not the count of records on a page call) either in the response or the header.

#89

  • Switching the rows per page when on the last row and using client-side paging will now correctly navigate to the recalculated last page instead of page 1
  • when using paginationServer page navigation this behavior will be bypassed

Documentation

  • added server-side pagination storybook

Don't miss a new react-data-table-component release

NewReleases is sending notifications on new releases.