The grid (core) ยท console.warn
source.mode "paged" requires a fetch function; the grid will stay empty.
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › source.paged.fetch
- Identifier
source.paged.fetch- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
A paged source asks for a window of rows at a time and was given no way to ask. No fetch is ever made and the grid shows nothing at all.
The fix
Supply source.fetch.
The smallest fix
source: { mode: 'paged', fetch: ({ start, end }) => api.page(start, end) }
Reference
Covered in full at the API reference.