github mui/mui-x v6.0.0-alpha.4

latest releases: v7.22.1, v7.22.0, v7.21.0...
pre-release2 years ago

We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:

  • 📝 Manage pickers' toolbar customization with slots
  • 🐞 Bugfixes
  • 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) @ramazansancar

@mui/x-data-grid@v6.0.0-alpha.4 / @mui/x-data-grid-pro@v6.0.0-alpha.4 / @mui/x-data-grid-premium@v6.0.0-alpha.4

Breaking changes

  • To avoid confusion with the props that will be added for the cell selection feature, some props related to row selection were renamed to have "row" in their name.
    The renamed props are the following:

    Old name New name
    selectionModel rowSelectionModel
    onSelectionModelChange onRowSelectionModelChange
    disableSelectionOnClick disableRowSelectionOnClick
    disableMultipleSelection disableMultipleRowSelection
  • The gridSelectionStateSelector selector was renamed to gridRowSelectionStateSelector.

  • The selectionChange event was renamed to rowSelectionChange.

Changes

@mui/x-date-pickers@v6.0.0-alpha.4 / @mui/x-date-pickers-pro@v6.0.0-alpha.4

Breaking changes

  • The ToolbarComponent has been replaced by a Toolbar component slot.
    You can find more information about this pattern in the MUI Base documentation:

    // Same on all other pickers
    <DatePicker
    -  ToolbarComponent: MyToolbar,
    +  components={{ Toolbar: MyToolbar }}
    />
  • The toolbarPlaceholder and toolbarFormat props have been moved to the toolbar components props slot:

    // Same on all other pickers
    <DatePicker
    -  toolbarPlaceholder="__"
    -  toolbarFormat="DD / MM / YYYY"
    +  componentsProps={{
    +    toolbar: {
    +      toolbarPlaceholder: "__",
    +      toolbarFormat: "DD / MM / YYYY",
    +    }
    +  }}
    />
  • The toolbarTitle prop has been moved to the localization object:

    // Same on all other pickers
    <DatePicker
    -  toolbarTitle="Title"
    +  localeText={{ toolbarTitle: "Title" }}
    />
  • The toolbar related translation keys have been renamed to better fit their usage:

    // Same on all other pickers
    <DatePicker
      localeText={{
    -    datePickerDefaultToolbarTitle: 'Date Picker',
    +    datePickerToolbarTitle: 'Date Picker',
    -    timePickerDefaultToolbarTitle: 'Time Picker',
    +    timePickerToolbarTitle: 'Time Picker',
    -    dateTimePickerDefaultToolbarTitle: 'Date Time Picker',
    +    dateTimePickerToolbarTitle: 'Date Time Picker',
    -    dateRangePickerDefaultToolbarTitle: 'Date Range Picker',
    +    dateRangePickerToolbarTitle: 'Date Range Picker',
      }}
    />
  • The onChange / openView props on the toolbar have been renamed onViewChange / view

Changes

Docs

Core

Don't miss a new mui-x release

NewReleases is sending notifications on new releases.