bastilian-tabletools
    Preparing search index...

    Function usePagination

    • Provides pagination props and functionality for a (Primary)Toolbar

      Parameters

      • Optionaloptions: { perPage?: number; total: number } = {}

        AsyncTableTools options

        • OptionalperPage?: number

          A number that will dictate the amount of items shown per page.

        • total: number

          The total number of items (required).

      Returns object

      An object of props meant to be used in the TableToolsTable