Skip to content

Commit eb4f69b

Browse files
authored
Allow setting whether a data source's end has been reached (#504)
1 parent e57a65b commit eb4f69b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/data-source/collection-browser-data-source-interface.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ export interface CollectionBrowserDataSourceInterface
283283
*/
284284
setFetchesSuppressed(suppressed: boolean): void;
285285

286+
/**
287+
* Sets whether the end of the current data has been reached, indicating whether further
288+
* pages should be looked up.
289+
* @param reached Whether we are at the end of the data for the current query state
290+
*/
291+
setEndOfDataReached(reached: boolean): void;
292+
286293
/**
287294
* Notifies the data source that a query change has occurred, which may trigger a data
288295
* reset & new fetches.

src/data-source/collection-browser-data-source.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,13 @@ export class CollectionBrowserDataSource
399399
this.suppressFetches = suppressed;
400400
}
401401

402+
/**
403+
* @inheritdoc
404+
*/
405+
setEndOfDataReached(reached: boolean): void {
406+
this.endOfDataReached = reached;
407+
}
408+
402409
/**
403410
* @inheritdoc
404411
*/

0 commit comments

Comments
 (0)