Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 1.25 KB

pagination.md

File metadata and controls

49 lines (42 loc) · 1.25 KB
description layout
Pagination object that provides indication if there is any previous or next page and functions to get to the previous or the next page.
title description tableOfContents outline pagination
visible
true
visible
true
visible
true
visible
visible
true

Pagination

Example

{
  "hasNextPage": true,
  "hasPrevPage": true,
  "getNextPage": () => {},
  "getPrevPage": () => {}
}

Type Signature

type Pagination = {
  hasNextPage: boolean;
  hasPrevPage: boolean;
  getNextPage: () => Promise<void>;
  getPrevPage: () => Promise<void>;
};

Fields

Param Type Default Value Description
hasNextPage boolean false Indicate if there is any next page.
hasPrevPage boolean false Indicate if there is any previous page.
getNextPage () => Promise<void> - Function to get data in the next page.
getPrevPage () => Promise<void> - Function to get data in the previous page.