Column Editors
For now, Infinite Table comes with a default built-in editor that's rendered when editing starts on any editable cell.
It's very easy to configure columns with your own custom editors via the
columns.components.Editor property.No built-in custom editors!
For now, we're not shipping any extra editors with Infinite Table.
There are a few reasons for that:
- we want to keep our bundle size small
- we're aware people have their own preferences - especially select/combo boxes and date pickers are very complex components on their own and there are many different popular alternatives many teams already use in their projects
So in this page and other parts of the docs, we'll use some popular alternatives, to show how to integrate them with Infinite Table.
Using Date Editors#
A common use-case is integrating date editors, so in the following example we'll use the MUI X Date Picker component.
#
Using MUI X Date Picker for editing dates in the DataGrid
This is a basic example integrating with the MUI X Date Picker - click any cell in the Birth Date column to show the date picker.
loading demo…
Configure Editors for Column Types#
When you have more than one column that needs to use the same editor, you can use the column types and associate the editor with the column type.
After defining your generic column types, make sure you assign them to the columns that need that specific type
#
Using MUI X Date Picker with custom 'date' type columns
This is a basic example integrating with the MUI X Date Picker - click any cell in the Birth Date or Date Hired columns to show the date picker.
This example uses the column types to give each date column the same editor and styling.
loading demo…