DevExtreme React Grid Material UI
A template suite used to customize React Grid with the Material UI rendering.
Installation
Install the main dx-react-grid package and its templates for Material UI:
npm i --save @devexpress/dx-react-grid @devexpress/dx-react-grid-material-ui
Note: The packages mentioned above have peer dependencies that should be installed manually. Use the following command to install them.
npm i --save @devexpress/dx-react-core
Add the required modules to your project:
import {
Grid
} from '@devexpress/dx-react-grid';
import {
TableView
} from '@devexpress/dx-react-grid-material-ui';
export const App = () => (
<Grid
rows={[{ id: 0, ... }, ...]}
columns={[{ name: 'id', ... }, ...]}>
<TableView />
</Grid>
);
Make sure that Material UI dependenices are installed and configured. If you have not yet configured Material UI for your project, check the following link.
Getting started
This package provides templates implementing Material UI rendering for the React Grid UI plugins and the UI Plugins with injected templates as well. You can use these templates instead of the ones in the original React Grid repository.
See demos for more information.
Reference
The package exposes components and plugins with injected templates.
The list of components:
The list of plugins:
Each plugin has properties with the 'Template' postfix. Components passed to such properties are templates.
You can override templates by passing your component or rendering function, or return undefined
from your custom template if you want to render a UI item with a built-in template.
License
DevExtreme licensing.