mates-grid docs

mates-grid

Tree Data

Supply getDataPath instead of rowGroup columns. Parents aggregate children. Indentation and expand state follow the path.

Region / team / person

Each row carries a path array. The auto group column becomes the tree.

gridAtom({
  treeData: true,
  getDataPath: (row) => row.path,
  autoGroupColumnDef: { headerName: "Organisation", width: 310 },
  data: [
    { id: 1, name: "Ada", path: ["EMEA", "Engineering", "Ada Lovelace"] },
  ],
});