Skip to content

Page

This data type describes a page of objects.

TIP

The values with this data type are iterable and can be used in for loops directly.

Properties

PropertyTypeDescription
contentListList of elements currently on this page
numberNumberPage number (starts from 0)
sizeNumberPage size
numberOfElementsNumberThe number of elements currently on this page
totalElementsNumberThe total amount of elements in the page source
totalPagesNumberThe number of total pages in the source
sortStringSorting direction (DESC if descending, ASC if ascending)
hasContentBooleanReturns true if page has content at all
hasNextBooleanReturns true if there's a next page
isFirstBooleanReturns true if it's the first page
isLastBooleanReturns true if it's the last page

All rights sniffed.