MUI X Data grid v5.8.0 Release Notes
-
Apr 4, 2022
๐ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights โจ:
- โช ๐ Expose new methods to save and restore the grid state (#4028) @flaviendelangle
The different methods to save and restore the data-grid state are now documented.
- ๐ โ๏ธ Move date and time picker components from the lab (#3451) @flaviendelangle
Date and time picker components have been moved to the MUI X repository. They are now accessible in their own packages:
@mui/x-date-pickers
and@mui/x-date-pickers-pro
. For more information, you can read the blog article and the migration guide.- โก๏ธ ๐ Add
onProcessRowUpdateError
prop to simplify error management in edit mode (#4267) @m4theushw - โจ Add generic typing to
GridColDef
and derived interfaces (#4064) @flaviendelangle
You can now strongly type all the objects related to the row and the cell values. Here is an example, you can find out more in the description of #4064.
const rows: Movie[] = []; return ( <DataGrid rows={rows} columns={[ { // typeof params.row => Movie (R) valueGetter: (params) => params.row.year, }, ]} /> );