Page asked to ILookupSource.search, by offset: a panel knows how
many items it shows and how many it already has.
The sources over a reader (createLookupSource,
createInMemoryLookupSource) translate it into the 1-based,
page-based Pagination of the payload, so offset must be a multiple of
limit: page by the same limit from 0 (0, limit, 2 * limit,
...). Their search rejects with a RangeError, without calling the
reader, when limit is not a positive integer or offset is not a
non-negative multiple of it. A hand-written ILookupSource may
accept any offset.
Example
awaitsource.search("ro", { limit:20, offset:40 }); // the third page awaitsource.search("ro", { limit:20, offset:30 }); // rejects: RangeError
Page asked to ILookupSource.search, by offset: a panel knows how many items it shows and how many it already has.
The sources over a reader (createLookupSource, createInMemoryLookupSource) translate it into the 1-based, page-based
Paginationof the payload, sooffsetmust be a multiple oflimit: page by the samelimitfrom0(0,limit,2 * limit, ...). Theirsearchrejects with aRangeError, without calling the reader, whenlimitis not a positive integer oroffsetis not a non-negative multiple of it. A hand-written ILookupSource may accept any offset.Example