Adding an id or data-testid to a reactDataGrid

468 views Asked by At

For clarity we are using this reactDataGrid, (https://reactdatagrid.io/)

Does anyone know if there any way to add an id or data-testid to the grid? I cannot find anything in the documentation and I I have tried anything I can think of. I unfortunately need to add ids because of testing. Any help is much appreciated!

 <ReactDataGrid
    treeColumn="description"
    licenseKey="..."
    style={gridStyle}
    columns={columns}
    data-id="workPlease"
  />

 <ReactDataGrid
    treeColumn="description"
    licenseKey="..."
    style={gridStyle}
    columns={columns}
    data-testid="workPlease"
  />

 <ReactDataGrid
    treeColumn="description"
    licenseKey="..."
    style={gridStyle}
    columns={columns}
    id="workPlease"
  />
0

There are 0 answers