github mui/mui-x v5.11.1

latest releases: v7.19.0, v7.18.0, v6.20.5...
2 years ago

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

  • 🌍 Support localization on the date and time picker components (#4517) @alexfauquette

    Texts can be translated in the pickers components, similar to what can be done in the data grid component. Check the documentation for more information.

  • 📃 Add support for column spanning when exporting to Excel (#4830) @cherniavskii

  • 🐞 Bugs fixes

@mui/x-data-grid@v5.11.1 / @mui/x-data-grid-pro@v5.11.1 / @mui/x-data-grid-premium@v5.11.1

Changes

@mui/x-date-pickers@5.0.0-alpha.4 / @mui/x-date-pickers-pro@5.0.0-alpha.4

Breaking changes

  • The props related to the action bar buttons have been removed (clearable, showTodayButton, cancelText, okText)

    To decide which button must be displayed and in which order, you can now use the actions prop of the actionBar component slot props.

    <DatePicker
      componentsProps={{ 
        actionBar: { 
          // The actions will be the same between desktop and mobile
          actions: ['clear'],
    
          // The actions will be different between desktop and mobile
          actions: (variant) => variant === 'desktop' ? [] : ['clear'],
        }
      }}
    />

    The build-in ActionBar component supports 4 different actions: 'clear', 'cancel', 'accept', and 'today'.
    By default, the pickers will render the cancel and accept button on mobile and no action on desktop.

    If you need other actions, you can provide your own component to the ActionBar component slot

    <DatePicker
      components={{ ActionBar: CustomActionBar }}
    />

Changes

Docs

Core

Don't miss a new mui-x release

NewReleases is sending notifications on new releases.