ServerSideDataSource
Data source contract for server-side row loading.
Implement this interface to supply rows from a remote API, database, or any
asynchronous provider. The grid calls getRows() whenever it needs a new
block of rows (on initial load, scroll, sort change, or filter change).
Example
Section titled “Example”const dataSource: ServerSideDataSource = { async getRows(params) { const res = await fetch(`/api/employees?start=${params.startRow}&end=${params.endRow}`); const data = await res.json(); return { rows: data.items, totalRowCount: data.total }; }};
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt