infinite-table / infinite-react

The modern React DataGrid for building apps — faster
https://infinite-table.com
73 stars 5 forks source link

Add api method to get value of a column #158

Closed bogdanpetru closed 1 year ago

bogdanpetru commented 1 year ago

It would be nice to have an API method to retrieve the value of a column. This is useful when the column is not based on a field but has a custom valueGetter.

Proposal for the API:

const value = gridApi.getCellValue(row, col)
// or
const value = gridApi.getCellValue(rowId, colId)

Edit. It would be more useful to be able to retrieve the formatted value for a column