diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 2fe8d1d0d..000000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,38 +0,0 @@
-
-## 1.0.5 (2018-01-02)
-
-Fix package.json issue
-
-
-## 1.0.4 (2018-01-01)
-
-* accessibility fixes + live announce area added to handle announcement of sorting columns and other f ([8dba3f7](https://github.com/gregnb/mui-datatables/commit/8dba3f7))
-* added jsx-a11y to eslint. material-ui upgraded to 1.0.0.beta.26. now injecting MUIPopover with conta ([533a818](https://github.com/gregnb/mui-datatables/commit/533a818))
-* added updatePosition to Popover after table row content updates ([baceb9f](https://github.com/gregnb/mui-datatables/commit/baceb9f))
-
-
-## 1.0.3 (2017-12-30)
-
-* additional code coverage. more clean up work ([e857b3f](https://github.com/gregnb/mui-datatables/commit/e857b3f))
-* code coverage now at 91%. ready for first publish ([aedfdba](https://github.com/gregnb/mui-datatables/commit/aedfdba))
-* created a better dataset for example demo. updated README ([edf4ce1](https://github.com/gregnb/mui-datatables/commit/edf4ce1))
-* fix responsive 'stacked' view styling issues ([0debb9b](https://github.com/gregnb/mui-datatables/commit/0debb9b))
-
-
-## 1.0.2 (2017-12-27)
-
-* fix rollup issue. move version to 1.0.2 ([880983e](https://github.com/gregnb/mui-datatables/commit/880983e))
-* Initial commit ([e09d24f](https://github.com/gregnb/mui-datatables/commit/e09d24f))
-* keypress document listen event for ESCAPE on toolbar search ([bc6fc8d](https://github.com/gregnb/mui-datatables/commit/bc6fc8d))
-* more unit test coverage. additional code cleanup ([94cad45](https://github.com/gregnb/mui-datatables/commit/94cad45))
-* move to version 1.0.1 ([70b14c4](https://github.com/gregnb/mui-datatables/commit/70b14c4))
-* ran prettier for cleanup ([f6ba65e](https://github.com/gregnb/mui-datatables/commit/f6ba65e))
-* removed withDataStyles. replaced it with a new implementation: ([b08a20b](https://github.com/gregnb/mui-datatables/commit/b08a20b))
-* set prettier on test/ ([7799301](https://github.com/gregnb/mui-datatables/commit/7799301))
-* swap SVG arrows for header columns. aria-labels for pagination ([128d4b3](https://github.com/gregnb/mui-datatables/commit/128d4b3))
-* update codesandbox link ([fa8d33d](https://github.com/gregnb/mui-datatables/commit/fa8d33d))
-* update README. add issue template ([cb7689b](https://github.com/gregnb/mui-datatables/commit/cb7689b))
-* update unit tests to reflect changed caused by withDataStyles removal ([e60a00d](https://github.com/gregnb/mui-datatables/commit/e60a00d))
-
-
-
diff --git a/README.md b/README.md
index 813b0e49e..fb215004d 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,9 @@ If your project doesn't already use them, you need to install `@material-ui/core
## Demo
-[![Edit react-to-print](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/gregnb/mui-datatables)
+[![Edit react-to-print](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/muidatatables-custom-toolbar-rvmcj?file=/index.js)
+
+Browse live demos of all examples in this repo in [here](https://codesandbox.io/s/github/gregnb/mui-datatables)!
## Usage
@@ -154,15 +156,15 @@ The component accepts the following props:
|**`caseSensitive `**|boolean|false|Enable/disable case sensitivity for search.
|**`confirmFilters`**|boolean|false|Works in conjunction with the **customFilterDialogFooter** option and makes it so filters have to be confirmed before being applied to the table. When this option is true, the customFilterDialogFooter callback will receive an applyFilters function which, when called, will apply the filters to the table. [Example](https://github.com/gregnb/mui-datatables/blob/master/examples/serverside-filters/index.js)
|**`count`**|number||User provided override for total number of rows.
+|**`customFilterDialogFooter `**|function||Add a custom footer to the filter dialog. `customFilterDialogFooter(curentFilterList: array, applyFilters: function) => React Component`
|**`customFooter`**|function||Render a custom table footer. `function(count, page, rowsPerPage, changeRowsPerPage, changePage, `[`textLabels: object`](https://github.com/gregnb/mui-datatables/blob/master/src/textLabels.js)`) => string`|` React Component` [Example](https://github.com/gregnb/mui-datatables/blob/master/examples/customize-footer/index.js)
+|**`customRowRender `**|function||Override default row rendering with custom function. `customRowRender(data, dataIndex, rowIndex) => React Component`
+|**`customSearch `**|function||Override default search with custom function. `customSearch(searchQuery: string, currentRow: array, columns: array) => boolean`
+|**`customSearchRender `**|function||Render a custom table search. `customSearchRender(searchText: string, handleSearch, hideSearch, options) => React Component`
|**`customSort`**|function||Override default sorting with custom function. `function(data: array, colIndex: number, order: string) => array`
|**`customTableBodyFooterRender`**|function||Render a footer under the table body but above the table's standard footer. This is useful for creating footers for individual columns. [Example](https://github.com/gregnb/mui-datatables/blob/master/examples/customize-footer/index.js)
|**`customToolbar`**|function||Render a custom toolbar
|**`customToolbarSelect`**|function||Render a custom selected rows toolbar. `function(selectedRows, displayData, setSelectedRows) => void`
-|**`customRowRender `**|function||Override default row rendering with custom function. `customRowRender(data, dataIndex, rowIndex) => React Component`
-|**`customSearch `**|function||Override default search with custom function. `customSearch(searchQuery: string, currentRow: array, columns: array) => boolean`
-|**`customSearchRender `**|function||Render a custom table search. `customSearchRender(searchText: string, handleSearch, hideSearch, options) => React Component`
-|**`customFilterDialogFooter `**|function||Add a custom footer to the filter dialog. `customFilterDialogFooter(curentFilterList: array, applyFilters: function) => React Component`
|**`download`**|boolean|true|Show/hide download icon from toolbar
|**`downloadOptions`**|object|`{filename: 'tableDownload.csv', separator: ','}`|Options to change the output of the CSV file: `filename`: string, `separator`: string, `filterOptions`: object(`useDisplayedColumnsOnly`: boolean, `useDisplayedRowsOnly`: boolean)
|**`elevation`**|number|4|Shadow depth applied to Paper component.
@@ -201,8 +203,8 @@ The component accepts the following props:
|**`renderExpandableRow`**|function||Render expandable row. `function(rowData, rowMeta) => React Component` [Example](https://github.com/gregnb/mui-datatables/blob/master/examples/expandable-rows/index.js)
|**`resizableColumns`**|boolean|false|Enable/disable resizable columns.
|**`responsive`**|string|'stacked'|Enable/disable responsive table views. Options:
"vertical" (default value): In smaller views the table cells will collapse such that the heading is to the left of the cell value.
"standard": Table will stay in the standard mode but make small changes to better fit the allocated space.
"simple": On very small devices the table rows will collapse into simple display.
[Example](https://github.com/gregnb/mui-datatables/blob/master/examples/simple/index.js)
-|**`rowsExpanded`**|array||User provided expanded rows.
|**`rowHover`**|boolean|true|Enable/disable hover style over rows.
+|**`rowsExpanded`**|array||User provided expanded rows.
|**`rowsPerPage`**|number|10|Number of rows allowed per page.
|**`rowsPerPageOptions`**|array|[10,15,100]|Options to provide in pagination for number of rows a user can select.
|**`rowsSelected`**|array||User provided selected rows.
diff --git a/examples/resizable-columns/index.js b/examples/resizable-columns/index.js
index bda5842a5..6ef774901 100644
--- a/examples/resizable-columns/index.js
+++ b/examples/resizable-columns/index.js
@@ -1,70 +1,95 @@
-import React from "react";
+import React, { useState } from "react";
import ReactDOM from "react-dom";
import MUIDataTable from "../../src/";
-class Example extends React.Component {
+import FormControl from '@material-ui/core/FormControl';
+import TextField from '@material-ui/core/TextField';
- constructor(props) {
- super(props);
+function Example(props) {
- this.state = { counter: 1 };
- }
+ const [marginLeft, setMarginLeft] = useState(10);
- // We update an arbitrary value here to test table resizing on state updates
- update = () => {
- let { counter } = this.state;
- counter += 1;
-
- this.setState({ counter });
+ const [counter, setCounter] = useState(1);
+ const incrCount = () => { // We update an arbitrary value here to test table resizing on state updates
+ setCounter(counter + 1);
};
- render() {
- const { counter } = this.state;
-
- const columns = [
- {
- name: "Counter",
- options: {
- empty: true,
- customBodyRender: value =>
- }
- },
- {
- name: "Name",
- options: {
- sort: false,
- hint: "?"
- }
- },
- {
- name: "Title",
- options: {
- hint: "?"
+ const columns = [
+ {
+ name: "Counter",
+ options: {
+ empty: true,
+ customBodyRender: value =>
+ }
+ },
+ {
+ name: "Name",
+ options: {
+ sort: false,
+ hint: "?",
+ setCellProps: () => ({style: {whiteSpace:'nowrap'}})
+ }
+ },
+ {
+ name: "Business Title",
+ options: {
+ hint: "?",
+ customBodyRender: (val) => {
+ let parentStyle = {
+ position: 'absolute',
+ top: 0,
+ right: 0,
+ bottom: 0,
+ left: 0,
+ boxSizing: 'border-box',
+ display: 'block',
+ width: '100%',
+ };
+ let cellStyle = {
+ boxSizing: 'border-box',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ };
+ return (
+