v7.8.0
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
-
🛰 Introduce server-side data source for improved server integration in the Data Grid.
Supports server-side pagination, sorting and filtering on plain and tree data, and automatic caching.
To enable, provide a
getRows
function to theunstable_dataSource
prop on the Data Grid component.const dataSource = { getRows: async (params: GridServerGetRowsParams) => { const data = await fetch( `https://api.example.com/data?${new URLSearchParams({ page: params.page, pageSize: params.pageSize, sortModel: JSON.stringify(params.sortModel), filterModel: JSON.stringify(params.filterModel), }).toString()}`, ); return { rows: data.rows, totalRows: data.totalRows, }; }, } <DataGridPro unstable_dataSource={dataSource} {...otherProps} />
See server-side data documentation for more details.
-
📈 Support Date data on the BarChart component
-
↕️ Support custom column sort icons on the Data Grid -
🖱️ Support modifying the expansion trigger on the Tree View components
Data Grid
@mui/x-data-grid@7.8.0
- [DataGrid] Add
columnHeaderSortIcon
slot (#13563) @arminmeh - [DataGrid] Fix dimensions lag issue after autosize (#13587) @MBilalShafi
- [DataGrid] Fix print export failure when
hideFooter
option is set (#13034) @tarunrajput
@mui/x-data-grid-pro@7.8.0
Same changes as in @mui/x-data-grid@7.8.0
, plus:
- [DataGridPro] Fix multi-sorting indicator being cut off (#13625) @KenanYusuf
- [DataGridPro] Server-side tree data support (#12317) @MBilalShafi
@mui/x-data-grid-premium@7.8.0
Same changes as in @mui/x-data-grid-pro@7.8.0
.
Date and Time Pickers
@mui/x-date-pickers@7.8.0
@mui/x-date-pickers-pro@7.8.0
Same changes as in @mui/x-date-pickers@7.8.0
.
Charts
@mui/x-charts@7.8.0
- [charts] Fix line chart props not passing correct event handlers (#13609) @JCQuintas
- [charts] Support BarChart with
Date
data (#13471) @alexfauquette - [charts] Support RTL for y-axis (#13614) @alexfauquette
- [charts] Use default values instead of non-null assertion to prevent error being thrown (#13637) @JCQuintas
Tree View
@mui/x-tree-view@7.8.0
- [TreeView] Add
expansionTrigger
prop (#13533) @noraleonte - [TreeView] Support experimental features from plugin's dependencies (#13632) @flaviendelangle
Docs
- [docs] Add callout for
Luxon
throwOnInvalid
support (#13621) @LukasTy - [docs] Add "Overlays" section to the Data Grid documentation (#13624) @KenanYusuf
Core
- [core] Add eslint rule to restrict import from
../internals
root (#13633) @JCQuintas - [docs-infra] Sync
\_app
folder with monorepo (#13582) @Janpot - [license] Allow usage of charts and tree view pro package for old premium licenses (#13619) @flaviendelangle