diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
index 9396727c2..b00d103dd 100644
--- a/.github/CODE_OF_CONDUCT.md
+++ b/.github/CODE_OF_CONDUCT.md
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
Examples of behavior that contributes to creating a positive environment
include:
-* Using welcoming and inclusive language
-* Being respectful of differing viewpoints and experiences
-* Gracefully accepting constructive criticism
-* Focusing on what is best for the community
-* Showing empathy towards other community members
+- Using welcoming and inclusive language
+- Being respectful of differing viewpoints and experiences
+- Gracefully accepting constructive criticism
+- Focusing on what is best for the community
+- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
-* The use of sexualized language or imagery and unwelcome sexual attention or
- advances
-* Trolling, insulting/derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or electronic
- address, without explicit permission
-* Other conduct which could reasonably be considered inappropriate in a
- professional setting
+- The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+- Trolling, insulting/derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+- Other conduct which could reasonably be considered inappropriate in a
+ professional setting
## Our Responsibilities
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 9d702d3ed..4ed7bf71e 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -7,4 +7,4 @@
**After your pull request is merged**, you can safely delete your branch.
-### [<- Back](https://github.com/mbrn/material-table/)
\ No newline at end of file
+### [<- Back](https://github.com/mbrn/material-table/)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index f65a8c755..08d562293 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -6,21 +6,21 @@ labels: "bug"
# Guidelines
- - #### Please include a demo of the issue/behavior/question you have
+- #### Please include a demo of the issue/behavior/question you have
- - #### Please try to be as detailed as possible
+- #### Please try to be as detailed as possible
- - #### You may fork one of the following starter templates if you would like:
-
- - #### [CodeSandbox](https://codesandbox.io/s/material-table-starter-template-xnfpo)
- - #### [StackBlitz](https://stackblitz.com/edit/material-table-starter-template)
+- #### You may fork one of the following starter templates if you would like:
+ - #### [CodeSandbox](https://codesandbox.io/s/material-table-starter-template-xnfpo)
+ - #### [StackBlitz](https://stackblitz.com/edit/material-table-starter-template)
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
+
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
@@ -33,15 +33,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- - OS: [e.g. iOS]
- - Browser [e.g. chrome, safari]
- - Version [e.g. 22]
+
+- OS: [e.g. iOS]
+- Browser [e.g. chrome, safari]
+- Version [e.g. 22]
**Smartphone (please complete the following information):**
- - Device: [e.g. iPhone6]
- - OS: [e.g. iOS8.1]
- - Browser [e.g. stock browser, safari]
- - Version [e.g. 22]
+
+- Device: [e.g. iPhone6]
+- OS: [e.g. iOS8.1]
+- Browser [e.g. stock browser, safari]
+- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index 2facc803b..a656192ae 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -6,15 +6,14 @@ labels: "feature"
# Guidelines
- - #### Please include a demo of the issue/behavior/question you have
+- #### Please include a demo of the issue/behavior/question you have
- - #### Please try to be as detailed as possible
+- #### Please try to be as detailed as possible
- - #### You may fork one of the following starter templates if you would like:
-
- - #### [CodeSandbox](https://codesandbox.io/s/material-table-starter-template-xnfpo)
- - #### [StackBlitz](https://stackblitz.com/edit/material-table-starter-template)
+- #### You may fork one of the following starter templates if you would like:
+ - #### [CodeSandbox](https://codesandbox.io/s/material-table-starter-template-xnfpo)
+ - #### [StackBlitz](https://stackblitz.com/edit/material-table-starter-template)
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
diff --git a/.github/ISSUE_TEMPLATE/help.md b/.github/ISSUE_TEMPLATE/help.md
index 34090de0d..43dc00898 100644
--- a/.github/ISSUE_TEMPLATE/help.md
+++ b/.github/ISSUE_TEMPLATE/help.md
@@ -6,11 +6,11 @@ labels: "question"
# Guidelines
- - #### Please include a demo of the issue/behavior/question you have
+- #### Please include a demo of the issue/behavior/question you have
- - #### Please try to be as detailed as possible
+- #### Please try to be as detailed as possible
- - #### You may fork one of the following starter templates if you would like:
+- #### You may fork one of the following starter templates if you would like:
- - #### [CodeSandbox](https://codesandbox.io/s/material-table-starter-template-xnfpo)
- - #### [StackBlitz](https://stackblitz.com/edit/material-table-starter-template)
+ - #### [CodeSandbox](https://codesandbox.io/s/material-table-starter-template-xnfpo)
+ - #### [StackBlitz](https://stackblitz.com/edit/material-table-starter-template)
diff --git a/.github/actions/setup-node b/.github/actions/setup-node
new file mode 100644
index 000000000..3ec96f707
--- /dev/null
+++ b/.github/actions/setup-node
@@ -0,0 +1,3 @@
+strategy:
+ matrix:
+ node-version: [8.16.2, 10.17.0]
\ No newline at end of file
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index fdcb27b09..45cb683b8 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,21 +1,26 @@
## Related Issue
+
Relate the Github issue with this PR using `#`
## Description
+
Simple words to describe the overall goals of the pull request's commits.
## Related PRs
+
List related PRs against other branches:
-branch | PR
------- | ------
-other_pr_production | [link]()
-other_pr_master | [link]()
+| branch | PR |
+| ------------------- | -------- |
+| other_pr_production | [link]() |
+| other_pr_master | [link]() |
## Impacted Areas in Application
+
List general components of the application that this PR will affect:
-*
+\*
## Additional Notes
-This is optional, feel free to follow your hearth and write here :)
\ No newline at end of file
+
+This is optional, feel free to follow your hearth and write here :)
diff --git a/.github/stale.yml b/.github/stale.yml
index 01ac0b7ee..c274dd9df 100644
--- a/.github/stale.yml
+++ b/.github/stale.yml
@@ -12,6 +12,6 @@ staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
- for your contributions. You can reopen it if it required.
+ for your contributions. You can reopen it if it required.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml
new file mode 100644
index 000000000..c023e2918
--- /dev/null
+++ b/.github/workflows/prettier.yml
@@ -0,0 +1,19 @@
+name: Prettier CLI
+# This action works with pull requests and pushes
+on:
+ pull_request:
+
+jobs:
+ prettier:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ ref: ${{ github.head_ref }}
+
+ - name: Prettify code
+ uses: creyD/prettier_action@v2.2
+ with:
+ prettier_options: --write **/*.{js,tsx,ts,md}
diff --git a/.travis.yml b/.travis.yml
index 36eef50fe..d0dafb70b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,7 @@ language: node_js
version: 1.0
sudo: false
node_js:
- - 10
+ - 10
install:
- npm install
script:
diff --git a/README.md b/README.md
index 1d31a7f22..89b70f30f 100644
--- a/README.md
+++ b/README.md
@@ -1,240 +1,245 @@
-
-
-
-
-
material-table
-
-
-
-A simple and powerful Datatable for React based on [Material-UI Table](https://material-ui.com/api/table/) with some additional features.
-
-[](https://travis-ci.org/mbrn/material-table)
-[](https://opencollective.com/material-table) [](https://www.npmjs.com/package/material-table)
-[](https://npmcharts.com/compare/material-table?minimal=true)
-[](http://isitmaintained.com/project/mbrn/material-table "Average time to resolve an issue")
-[](https://xscode.com/mbrn/material-table)
-[](https://twitter.com/baranmehmet)
-[](https://gitter.im/material-table/Lobby)
-
-
-
-## Roadmap
-
- - [More on our roadmap can be found here](https://github.com/mbrn/material-table/blob/master/.github/ROADMAP.md)
-
-## Key features
-
-- [Actions](https://material-table.com/#/docs/features/actions)
-- [Component overriding](https://material-table.com/#/docs/features/component-overriding)
-- [Custom column rendering](https://material-table.com/#/docs/features/custom-column-rendering)
-- [Detail Panel](https://material-table.com/#/docs/features/detail-panel)
-- [Editable](https://material-table.com/#/docs/features/editable)
-- [Export](https://material-table.com/#/docs/features/export)
-- [Filtering](https://material-table.com/#/docs/features/filtering)
-- [Grouping](https://material-table.com/#/docs/features/grouping)
-- [Localization](https://material-table.com/#/docs/features/localization)
-- [Remote Data](https://material-table.com/#/docs/features/remote-data)
-- [Search](https://material-table.com/#/docs/features/search)
-- [Selection](https://material-table.com/#/docs/features/selection)
-- [Sorting](https://material-table.com/#/docs/features/sorting)
-- [Styling](https://material-table.com/#/docs/features/styling)
-- [Tree Data](https://material-table.com/#/docs/features/tree-data)
-- and more
-
-## Demo and documentation
-
-You can access all code examples and documentation on our site [**material-table.com**](https://material-table.com/).
-
-## Support material-table
-
-To support material-table visit [SUPPORT](https://www.patreon.com/mbrn) page.
-
-## Issue Prioritizing
-
-Issues would be prioritized according reactions count. `is:issue is:open sort:reactions-+1-desc` filter would be use.
-
-[List issues according to reaction score](https://github.com/mbrn/material-table/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc)
-
-## Prerequisites
-
-The minimum `React` version material-table supports is `^16.8.5` since material-table `v1.36.1`. This is due to utilising [`react-beautiful-dnd`](https://github.com/atlassian/react-beautiful-dnd) for drag & drop functionality which uses hooks.
-
-If you use an older version of react we suggest to upgrade your dependencies or use material-table `1.36.0`.
-
-## Installation
-
-#### 1.Install package
-
-To install material-table with `npm`:
-
- npm install material-table @material-ui/core --save
-
-To install material-table with `yarn`:
-
- yarn add material-table @material-ui/core
-
-#### 2.Add material icons
-
-There are two ways to use icons in material-table either import the material icons font via html OR import material icons and use the material-table `icons` prop.
-
-##### HTML
-
-```html
-
-```
-
-OR
-
-##### Import Material icons
-
-Icons can be imported to be used in material-table offering more flexibility for customising the look and feel of material table over using a font library.
-
-To install @material-ui/icons with `npm`:
-
- npm install @material-ui/icons --save
-
-To install @material-ui/icons with `yarn`:
-
- yarn add @material-ui/icons
-
-If your environment doesn't support tree-shaking, the **recommended** way to import the icons is the following:
-
-```jsx
-import AddBox from "@material-ui/icons/AddBox";
-import ArrowDownward from "@material-ui/icons/ArrowDownward";
-```
-
-If your environment support tree-shaking you can also import the icons this way:
-
-```jsx
-import { AddBox, ArrowDownward } from "@material-ui/icons";
-```
-
-Note: Importing named exports in this way will result in the code for _every icon_ being included in your project, so is not recommended unless you configure [tree-shaking](https://webpack.js.org/guides/tree-shaking/). It may also impact Hot Module Reload performance. Source: [@material-ui/icons](https://github.com/mui-org/material-ui/blob/master/packages/material-ui-icons/README.md#imports)
-
-Example
-
-```jsx
-import { forwardRef } from 'react';
-
-import AddBox from '@material-ui/icons/AddBox';
-import ArrowDownward from '@material-ui/icons/ArrowDownward';
-import Check from '@material-ui/icons/Check';
-import ChevronLeft from '@material-ui/icons/ChevronLeft';
-import ChevronRight from '@material-ui/icons/ChevronRight';
-import Clear from '@material-ui/icons/Clear';
-import DeleteOutline from '@material-ui/icons/DeleteOutline';
-import Edit from '@material-ui/icons/Edit';
-import FilterList from '@material-ui/icons/FilterList';
-import FirstPage from '@material-ui/icons/FirstPage';
-import LastPage from '@material-ui/icons/LastPage';
-import Remove from '@material-ui/icons/Remove';
-import SaveAlt from '@material-ui/icons/SaveAlt';
-import Search from '@material-ui/icons/Search';
-import ViewColumn from '@material-ui/icons/ViewColumn';
-
-const tableIcons = {
- Add: forwardRef((props, ref) => ),
- Check: forwardRef((props, ref) => ),
- Clear: forwardRef((props, ref) => ),
- Delete: forwardRef((props, ref) => ),
- DetailPanel: forwardRef((props, ref) => ),
- Edit: forwardRef((props, ref) => ),
- Export: forwardRef((props, ref) => ),
- Filter: forwardRef((props, ref) => ),
- FirstPage: forwardRef((props, ref) => ),
- LastPage: forwardRef((props, ref) => ),
- NextPage: forwardRef((props, ref) => ),
- PreviousPage: forwardRef((props, ref) => ),
- ResetSearch: forwardRef((props, ref) => ),
- Search: forwardRef((props, ref) => ),
- SortArrow: forwardRef((props, ref) => ),
- ThirdStateCheck: forwardRef((props, ref) => ),
- ViewColumn: forwardRef((props, ref) => )
- };
-
-
-```
-
-## Usage
-
-Here is a basic example of using material-table within a react application.
-
-```jsx
-import React, { Component } from "react";
-import ReactDOM from "react-dom";
-import MaterialTable from "material-table";
-
-class App extends Component {
- render() {
- return (
-
-
-
- );
- }
-}
-
-ReactDOM.render(, document.getElementById("react-div"));
-```
-
-## Contributing
-
-We'd love to have your helping hand on `material-table`! See [CONTRIBUTING.md](https://github.com/mbrn/material-table/blob/master/.github/CONTRIBUTING.md) for more information on what we're looking for and how to get started.
-
-If you have any sort of doubt, idea or just want to talk about the project, feel free to join [our chat on Gitter](https://gitter.im/material-table/Lobby) :)
-
-## Contributors
-
-### Code Contributors
-
-This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
-
-
-### Financial Contributors
-
-Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/material-table/contribute)]
-
-#### Individuals
-
-
-
-#### Organizations
-
-Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/material-table/contribute)]
-
-
-
-
-
-
-
-
-
-
-
-
-## License
-
-This project is licensed under the terms of the [MIT license](/LICENSE).
+
+
+
+
+
material-table
+
+
+
+A simple and powerful Datatable for React based on [Material-UI Table](https://material-ui.com/api/table/) with some additional features.
+
+[](https://travis-ci.org/mbrn/material-table)
+[](https://opencollective.com/material-table) [](https://www.npmjs.com/package/material-table)
+[](https://npmcharts.com/compare/material-table?minimal=true)
+[](http://isitmaintained.com/project/mbrn/material-table "Average time to resolve an issue")
+[](https://xscode.com/mbrn/material-table)
+[](https://twitter.com/baranmehmet)
+[](https://gitter.im/material-table/Lobby)
+
+
+
+## Roadmap
+
+- [More on our roadmap can be found here](https://github.com/mbrn/material-table/blob/master/.github/ROADMAP.md)
+
+## Key features
+
+- [Actions](https://material-table.com/#/docs/features/actions)
+- [Component overriding](https://material-table.com/#/docs/features/component-overriding)
+- [Custom column rendering](https://material-table.com/#/docs/features/custom-column-rendering)
+- [Detail Panel](https://material-table.com/#/docs/features/detail-panel)
+- [Editable](https://material-table.com/#/docs/features/editable)
+- [Export](https://material-table.com/#/docs/features/export)
+- [Filtering](https://material-table.com/#/docs/features/filtering)
+- [Grouping](https://material-table.com/#/docs/features/grouping)
+- [Localization](https://material-table.com/#/docs/features/localization)
+- [Remote Data](https://material-table.com/#/docs/features/remote-data)
+- [Search](https://material-table.com/#/docs/features/search)
+- [Selection](https://material-table.com/#/docs/features/selection)
+- [Sorting](https://material-table.com/#/docs/features/sorting)
+- [Styling](https://material-table.com/#/docs/features/styling)
+- [Tree Data](https://material-table.com/#/docs/features/tree-data)
+- and more
+
+## Demo and documentation
+
+You can access all code examples and documentation on our site [**material-table.com**](https://material-table.com/).
+
+## Support material-table
+
+To support material-table visit [SUPPORT](https://www.patreon.com/mbrn) page.
+
+## Issue Prioritizing
+
+Issues would be prioritized according reactions count. `is:issue is:open sort:reactions-+1-desc` filter would be use.
+
+[List issues according to reaction score](https://github.com/mbrn/material-table/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc)
+
+## Prerequisites
+
+The minimum `React` version material-table supports is `^16.8.5` since material-table `v1.36.1`. This is due to utilising [`react-beautiful-dnd`](https://github.com/atlassian/react-beautiful-dnd) for drag & drop functionality which uses hooks.
+
+If you use an older version of react we suggest to upgrade your dependencies or use material-table `1.36.0`.
+
+## Installation
+
+#### 1.Install package
+
+To install material-table with `npm`:
+
+ npm install material-table @material-ui/core --save
+
+To install material-table with `yarn`:
+
+ yarn add material-table @material-ui/core
+
+#### 2.Add material icons
+
+There are two ways to use icons in material-table either import the material icons font via html OR import material icons and use the material-table `icons` prop.
+
+##### HTML
+
+```html
+
+```
+
+OR
+
+##### Import Material icons
+
+Icons can be imported to be used in material-table offering more flexibility for customising the look and feel of material table over using a font library.
+
+To install @material-ui/icons with `npm`:
+
+ npm install @material-ui/icons --save
+
+To install @material-ui/icons with `yarn`:
+
+ yarn add @material-ui/icons
+
+If your environment doesn't support tree-shaking, the **recommended** way to import the icons is the following:
+
+```jsx
+import AddBox from "@material-ui/icons/AddBox";
+import ArrowDownward from "@material-ui/icons/ArrowDownward";
+```
+
+If your environment support tree-shaking you can also import the icons this way:
+
+```jsx
+import { AddBox, ArrowDownward } from "@material-ui/icons";
+```
+
+Note: Importing named exports in this way will result in the code for _every icon_ being included in your project, so is not recommended unless you configure [tree-shaking](https://webpack.js.org/guides/tree-shaking/). It may also impact Hot Module Reload performance. Source: [@material-ui/icons](https://github.com/mui-org/material-ui/blob/master/packages/material-ui-icons/README.md#imports)
+
+Example
+
+```jsx
+import { forwardRef } from 'react';
+
+import AddBox from '@material-ui/icons/AddBox';
+import ArrowDownward from '@material-ui/icons/ArrowDownward';
+import Check from '@material-ui/icons/Check';
+import ChevronLeft from '@material-ui/icons/ChevronLeft';
+import ChevronRight from '@material-ui/icons/ChevronRight';
+import Clear from '@material-ui/icons/Clear';
+import DeleteOutline from '@material-ui/icons/DeleteOutline';
+import Edit from '@material-ui/icons/Edit';
+import FilterList from '@material-ui/icons/FilterList';
+import FirstPage from '@material-ui/icons/FirstPage';
+import LastPage from '@material-ui/icons/LastPage';
+import Remove from '@material-ui/icons/Remove';
+import SaveAlt from '@material-ui/icons/SaveAlt';
+import Search from '@material-ui/icons/Search';
+import ViewColumn from '@material-ui/icons/ViewColumn';
+
+const tableIcons = {
+ Add: forwardRef((props, ref) => ),
+ Check: forwardRef((props, ref) => ),
+ Clear: forwardRef((props, ref) => ),
+ Delete: forwardRef((props, ref) => ),
+ DetailPanel: forwardRef((props, ref) => ),
+ Edit: forwardRef((props, ref) => ),
+ Export: forwardRef((props, ref) => ),
+ Filter: forwardRef((props, ref) => ),
+ FirstPage: forwardRef((props, ref) => ),
+ LastPage: forwardRef((props, ref) => ),
+ NextPage: forwardRef((props, ref) => ),
+ PreviousPage: forwardRef((props, ref) => ),
+ ResetSearch: forwardRef((props, ref) => ),
+ Search: forwardRef((props, ref) => ),
+ SortArrow: forwardRef((props, ref) => ),
+ ThirdStateCheck: forwardRef((props, ref) => ),
+ ViewColumn: forwardRef((props, ref) => )
+ };
+
+
+```
+
+## Usage
+
+Here is a basic example of using material-table within a react application.
+
+```jsx
+import React, { Component } from "react";
+import ReactDOM from "react-dom";
+import MaterialTable from "material-table";
+
+class App extends Component {
+ render() {
+ return (
+