Skip to content

Commit

Permalink
update README. add issue template
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnb committed Dec 26, 2017
1 parent e857b3f commit cb7689b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 44 deletions.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

<!--
Thank you very much for contributing to mui-datatables by creating an issue!
-->

## Config
<!---
Please paste the code you're using to initialize mui-datatables
-->


## Issue
<!---
If describing a bug, tell us what happens instead of the expected behavior.
If suggesting a change/improvement, explain the difference from current behavior.
-->

## Your Environment
<!--- Include as many relevant details about the environment with which you experienced the bug. -->

| Tech | Version |
|--------------|---------|
| mui-datatables | |
| node | |
| OS | |
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MUI-Datatables is a data tables component built on [Material-UI V1](https://www.material-ui-next.com). It comes with features like filtering, view/hide columns, search, export to CSV download, printing, pagination, and sorting. On top of the ability to customize styling on most views, there is a responsive data stacking mode for mobile/tablet devices.

<div align="center">
<img src="https://user-images.githubusercontent.com/19170080/34319732-406ab3e6-e7b7-11e7-97b6-eefc330f8cf7.gif" />
<img src="https://user-images.githubusercontent.com/19170080/34346996-b59a8b3a-e9cb-11e7-80d5-591aef3dc1f4.gif" />
</div>

## Install
Expand Down
43 changes: 0 additions & 43 deletions test/MUIDataTableToolbar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ import IconButton from "material-ui/IconButton";
import MUIDataTableToolbar from "../src/MUIDataTableToolbar";
import MUIDataTableSearch from "../src/MUIDataTableSearch";

/*
<MUIDataTableToolbar
columns={columns}
data={data}
filterData={filterData}
filterList={filterList}
filterUpdate={this.filterUpdate}
options={this.options}
resetFilters={this.resetFilters}
searchTextUpdate={this.searchTextUpdate}
tableRef={() => this.tableRef}
title={title}
toggleViewColumn={this.toggleViewColumn}
/>
*/

describe("<MUIDataTableToolbar />", function() {
let data;
let columns;
Expand Down Expand Up @@ -128,31 +112,4 @@ describe("<MUIDataTableToolbar />", function() {
assert.strictEqual(removeSpy.callCount, 1);
});

// setActiveIcon = iconName => {
// this.setState(() => ({
// iconActive: iconName,
// showSearch: iconName === "search" ? true : false,
// }));
// };

/* add this later */
// it("should render a toolbar with no search when options.", () => {
// const options = {};
// const mountWrapper = mount(<MUIDataTableToolbar columns={columns} data={data} options={options} />);
// const actualResult = mountWrapper.find(IconButton);
// assert.strictEqual(actualResult.length, 5);
// });

// it("should trigger handleTextChange prop callback when calling method handleTextChange", () => {
// const options = {};
// const onSearch = spy();
// const onHide = () => {};

// const shallowWrapper = shallow(<MUIDataTableSearch onSearch={onSearch} onHide={onHide} options={options} />);

// const instance = shallowWrapper.instance();

// instance.handleTextChange({ target: { value: "" } });
// assert.strictEqual(onSearch.callCount, 1);
// });
});

0 comments on commit cb7689b

Please sign in to comment.