mates-grid docs

mates-grid

Infinite Row Model

Provide a datasource.getRows callback instead of row data. The grid requests blocks by start/end row, plus the current sort and filter models.

1,000 server rows, 100 per block

Scroll to load the next block. Floating filters and sort are applied in the mock server. Refresh or purge the cache from the atom.

gridAtom({
  datasource: {
    getRows: (params) => {
      fetchPage(params).then((page) =>
        params.successCallback(page.rows, page.total),
      );
    },
  },
  cacheBlockSize: 100,
});