Skip to content

Instantly share code, notes, and snippets.

@jsdaniell
Created July 25, 2019 13:48
Show Gist options
  • Select an option

  • Save jsdaniell/02f46f2b3e4b2c5f66cf805d20425934 to your computer and use it in GitHub Desktop.

Select an option

Save jsdaniell/02f46f2b3e4b2c5f66cf805d20425934 to your computer and use it in GitHub Desktop.
Mui-Datatable with custom footer.
import React from "react";
import TableFooter from "@material-ui/core/TableFooter";
import TableRow from "@material-ui/core/TableRow";
import TableCell from "@material-ui/core/TableCell";
import { withStyles } from "@material-ui/core/styles";
const defaultFooterStyles = {
};
class CustomFooter extends React.Component {
render() {
const { classes } = this.props;
return (
<TableFooter>
<TableRow>
<TableCell>
some content
</TableCell>
</TableRow>
</TableFooter>
);
}
}
export default withStyles(defaultFooterStyles, { name: "CustomFooter" })(CustomFooter);
@jsdaniell
Copy link
Copy Markdown
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment