Class: GridData

.data.GridData(galleryConfigDict)

Class representing *unfiltered* grid data.

Constructor

new GridData(galleryConfigDict)

Create the grid data object.
Parameters:
Name Type Description
galleryConfigDict Object Gallery configuration dictionary.
Source:

Members

dataItemAmount

Return the number of items if already loaded in the past, i.e., via getItemsQuantity().
Source:

Methods

getItemsQuantity()

Request the number of items, regardless of the service.
Source:
Returns:
Promise with number of items.

loadItems(startIndex, count, query, queueing)

Load items until the count is reached. No filtering is applied.
Parameters:
Name Type Default Description
startIndex Number Index where loading should start.
count Number Number of items that should be loaded.
query Object Custom query parameters for the request.
queueing Boolean true If true, load multiple requests synchronously via queue.
Source:
Returns:
Promise.