domain~ Pagination

A pagination criteria object.

Constructor

new Pagination(max, offsetopt)

Construct a pagination object.

Parameters:
NameTypeAttributesDescription
maxnumber

the maximum number of results to return

offsetnumber<optional>

the 0-based starting offset

Members

max

Get the maximum number of results to return.

offset

Get the results starting offset.

The first available result starts at offset 0. Note this is a raw offset value, not a "page" offset.

Methods

toUriEncoding() → {string}

Get this object as a standard URI encoded (query parameters) string value.

Returns:

the URI encoded string

Type: 
string

withOffset(offset) → {Pagination}

Copy constructor with a new offset value.

Parameters:
NameTypeDescription
offsetnumber

the new offset to use

Returns:

a new instance

Type: 
Pagination