Core datasource contract for data-driven views (table, repeater, etc.).
Implementations provide the total item count and on-demand access to individual rows by index, optionally returning a Promise for rows that are fetched asynchronously.
Promise
The row object type.
Returns the total number of items, synchronously or asynchronously.
Returns the row object at the given index.
Zero-based index of the row to retrieve.
The row value, or a Promise that resolves to it.
Core datasource contract for data-driven views (table, repeater, etc.).
Implementations provide the total item count and on-demand access to individual rows by index, optionally returning a
Promisefor rows that are fetched asynchronously.