Home > youtubes.js > Pagination
Provides utility methods for pagination.
Signature:
export declare class Pagination<T>
Constructor |
Modifiers |
Description |
---|---|---|
(constructor)({ data, logger, prevToken, nextToken, resultsPerPage, totalResults, getWithToken, }) |
Constructs a new instance of the |
Property |
Modifiers |
Type |
Description |
---|---|---|---|
T |
The data of the current page. | ||
number |
The number of results included in the API response. | ||
number |
The total number of results in the result set. |
Method |
Modifiers |
Description |
---|---|---|
Fetches all pages data. | ||
Fetches the next page. | ||
Fetches the previous page. |