DataSource Props

In the API Reference below we’ll use DATA_TYPE to refer to the TypeScript type that represents the data the component is bound to.

data

DATA_TYPE[]|Promise<DATA_TYPE[]|() => DATA_TYPE[]|Promise<DATA_TYPE[]>

Specifies the data the component is bound to. Can be one of the following:

  • an array of the bound type - eg: Employee[]
  • a Promise tha resolves to an array like the above
  • a function that returns an any of the above

groupRowsBy

An array of objects with field properties, that control how rows are being grouped.