@mui/x-data-grid-pro
Advanced tools
Changelog
7.0.0-alpha.2
Nov 23, 2023
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
Changelog
7.0.0-alpha.1
Nov 17, 2023
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
Changelog
7.0.0-alpha.0
Nov 10, 2023
We're thrilled to announce the first alpha release of our next major version, v7. This release introduces a few breaking changes, paving the way for the upcoming features like Pivoting and DateTimeRangePicker.
A special shoutout to thank the 12 contributors who made this release possible. Here are some highlights ✨:
renderHeader
is used (#10961) @cherniavskii<ChartsReferenceLine />
component is now availablecomponents
and componentsProps
props have been removed. Use slots
and slotProps
instead. See components section for more details.getRowsToExport
function.getApplyFilterFnV7
in GridFilterOperator
was renamed to getApplyFilterFn
.
If you use getApplyFilterFnV7
directly - rename it to getApplyFilterFn
.getApplyFilterFn
has changed for performance reasons: const getApplyFilterFn: GetApplyFilterFn<any, unknown> = (filterItem) => {
if (!filterItem.value) {
return null;
}
const filterRegex = new RegExp(escapeRegExp(filterItem.value), 'i');
- return (cellParams) => {
- const { value } = cellParams;
+ return (value, row, colDef, apiRef) => {
return value != null ? filterRegex.test(String(value)) : false;
};
}
getApplyQuickFilterFnV7
in GridColDef
was renamed to getApplyQuickFilterFn
.
If you use getApplyQuickFilterFnV7
directly - rename it to getApplyQuickFilterFn
.getApplyQuickFilterFn
has changed for performance reasons: const getGridStringQuickFilterFn: GetApplyQuickFilterFn<any, unknown> = (value) => {
if (!value) {
return null;
}
const filterRegex = new RegExp(escapeRegExp(value), 'i');
- return (cellParams) => {
- const { formattedValue } = cellParams;
+ return (value, row, column, apiRef) => {
+ let formattedValue = apiRef.current.getRowFormattedValue(row, column);
return formattedValue != null ? filterRegex.test(formattedValue.toString()) : false;
};
};