Skip to content

Commit

Permalink
Merge pull request #1863 from ashfaqnisar/readme-update
Browse files Browse the repository at this point in the history
readme: Update the readme
  • Loading branch information
wdh2100 committed Feb 20, 2022
2 parents 5adcdbb + db95ea1 commit 22ae093
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions README.md
Expand Up @@ -37,23 +37,23 @@ Version 3 has been released! You can read about the [updates here](https://githu

`npm install mui-datatables --save`

If your project doesn't already use them, you need to install `@material-ui/core` and `@material-ui/icons` as well.
If your project doesn't already use them, you need to install `@mui/material`, `@mui/icons-material` as well.

## Compatibility

| mui-datatables | material-ui | Required Dependencies |
|----------------|-------------|------------------------------------------------------|
| ^2.0.0 | ^3.0.0 | `@material-ui/core`,`@material-ui/icons` |
| ^3.0.0 | ^4.10.0 | `@material-ui/core`,`@material-ui/icons` |
| ^3.8.0 | ^4.12.0 | `@material-ui/core`,`@material-ui/icons` |
| ^4.0.0 | ^5.0.0 | `@mui/material`,`@mui/icons-material`, `@mui/styles` |

## Demo

[![Edit react-to-print](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/muidatatables-custom-toolbar-forked-j002q?file=/index.js)

Browse live demos of all examples in this repo in [here](https://codesandbox.io/s/github/gregnb/mui-datatables)!

## compatibility

| mui-datatables | material |
| ------------- | ------------- |
| ^2.0.0 | ^3.0.0 |
| ^3.0.0 | ^4.10.0 |
| ^3.8.0 | ^4.12.0 |
| ^4.0.0 | ^5.0.0 |

## Usage

For a simple table:
Expand Down Expand Up @@ -367,10 +367,12 @@ import { createTheme, ThemeProvider } from '@material-ui/core/styles';
class BodyCellExample extends React.Component {

getMuiTheme = () => createTheme({
overrides: {
components: {
MUIDataTableBodyCell: {
root: {
backgroundColor: "#FF0000"
styleOverrides:{
root: {
backgroundColor: "#FF0000"
}
}
}
}
Expand Down

0 comments on commit 22ae093

Please sign in to comment.