react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Type Column.key: 'keyof TRow' instead of 'string'

Open aagarciga opened this issue 3 years ago • 0 comments

I would like to request a review of this idea: By changing the type of the field key from 'string' to 'keyof TRow' we get the possibility of code completion based on the type of the rows. This little simple change makes working on the configuration of the columns way more manageable than checking on the type of the row for every field we want to include as a column on the grid.

image

aagarciga avatar Aug 10 '22 15:08 aagarciga