Skip to main content

usePagination

Result
Loading...
Live Editor

Set active page to start​

Result
Loading...
Live Editor

Manage pagination state yourself​

Result
Loading...
Live Editor

With Pagination By Row​

Result
Loading...
Live Editor

PluginProperties​

Type: [Object]

Properties​

  • pageSize [number]? The number of rows to show per page.
  • activePage [number]? The index of the page to start on.
  • onPageClick [onPageClick]? A callback that will be called whenever click is fired on a page item.
  • paginationStyle [string]? Defaults to 'page'. Set to 'by-rows' to paginate by rows.

usePagination​

Create a plugin hook that enables DataTable pagination by adding the pagination component below the table.

Parameters​

  • props [PluginProperties] (optional, default {})

Returns Plugin

onPageClick​

Type: [Function]

Parameters​

  • Event [Object]
  • nextActivePage [number] The integer value of the next active page.