{"id":13527167,"url":"https://github.com/hyojin/material-ui-datatables","last_synced_at":"2025-04-01T09:31:11.822Z","repository":{"id":57292114,"uuid":"73165724","full_name":"hyojin/material-ui-datatables","owner":"hyojin","description":"An another React Data tables component.","archived":false,"fork":false,"pushed_at":"2018-07-23T16:09:25.000Z","size":411,"stargazers_count":165,"open_issues_count":35,"forks_count":58,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-14T19:16:00.323Z","etag":null,"topics":["datatables","material-design","material-ui","material-ui-datatables","react","react-component"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyojin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-08T08:36:28.000Z","updated_at":"2023-12-20T10:13:47.000Z","dependencies_parsed_at":"2022-08-27T12:20:45.653Z","dependency_job_id":null,"html_url":"https://github.com/hyojin/material-ui-datatables","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyojin%2Fmaterial-ui-datatables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyojin%2Fmaterial-ui-datatables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyojin%2Fmaterial-ui-datatables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyojin%2Fmaterial-ui-datatables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyojin","download_url":"https://codeload.github.com/hyojin/material-ui-datatables/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246616018,"owners_count":20806043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datatables","material-design","material-ui","material-ui-datatables","react","react-component"],"created_at":"2024-08-01T06:01:42.422Z","updated_at":"2025-04-01T09:31:11.481Z","avatar_url":"https://github.com/hyojin.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Material-UI-Datatables\n\n[![npm](https://img.shields.io/npm/v/material-ui-datatables.svg?style=flat-square)](https://www.npmjs.com/package/material-ui-datatables)\n[![Build Status](https://img.shields.io/travis/hyojin/material-ui-datatables/master.svg?style=flat-square)](https://travis-ci.org/hyojin/material-ui-datatables)\n[![Coverage Status](https://img.shields.io/coveralls/hyojin/material-ui-datatables/master.svg?style=flat-square)](https://coveralls.io/github/hyojin/material-ui-datatables?branch=master)\n\nAn another React Data tables component.  \nMaterial-UI-Datatables is a custom [React](https://facebook.github.io/react/) component using awesome [Material-UI](http://www.material-ui.com/). It provides rendering data and emitting events\n such as filter and column sort and pagination which may help you dealing with your data. But it doesn't provide features all done within the component. Most parts of this component are stateless, which means you need to implement your logic for the events.\n\n**Now material-ui provides [example code](https://material-ui-1dab0.firebaseapp.com/demos/tables/) of data tables component with it's v1.0.0 package**\n\n## Installation\n```sh\nnpm install material-ui-datatables\n```\nor\n```sh\nyarn add material-ui-datatables\n```\n\n## Demo\n[Demo](https://hyojin.github.io/material-ui-datatables/)\n\n## Status\nWork in progress\n\n## Usage\n```jsx\nimport React, {Component} from 'react';\nimport DataTables from 'material-ui-datatables';\n\nconst TABLE_COLUMNS = [\n  {\n    key: 'name',\n    label: 'Dessert (100g serving)',\n  }, {\n    key: 'calories',\n    label: 'Calories',\n  },\n  ...\n];\n\nconst TABLE_DATA = [\n  {\n    name: 'Frozen yogurt',\n    calories: '159',\n    fat: '6.0',\n    carbs: '24',\n    ...\n  }, {\n    name: 'Ice cream sandwich',\n    calories: '159',\n    fat: '6.0',\n    carbs: '24',\n    ...\n  },\n  ...\n];\n\nclass MyComponent extends Component {\n  ...\n  handleFilterValueChange = (value) =\u003e {\n    // your filter logic\n  }\n\n  handleSortOrderChange = (key, order) =\u003e {\n    // your sort logic\n  }\n\n  render() {\n    return (\n      \u003cDataTables\n        height={'auto'}\n        selectable={false}\n        showRowHover={true}\n        columns={TABLE_COLUMNS}\n        data={TABLE_DATA}\n        showCheckboxes={false}\n        onCellClick={this.handleCellClick}\n        onCellDoubleClick={this.handleCellDoubleClick}\n        onFilterValueChange={this.handleFilterValueChange}\n        onSortOrderChange={this.handleSortOrderChange}\n        page={1}\n        count={100}\n      /\u003e\n    );\n  }\n}\n```\n\n## Properties\n| Name                 | Type      | Default           | Description                                  |\n|----------------------|-----------|-------------------|----------------------------------------------|\n| columns              | array     |                   | Array of column settings [object](https://github.com/hyojin/material-ui-datatables#column-settings) |\n| count                | number    | 0                 |                                              |\n| data                 | array     |                   |                                              |\n| enableSelectAll      | bool      | false             |                                              |\n| filterHintText       | string    | 'Search'          |                                              |\n| filterValue          | string    | ''                |                                              |\n| footerToolbarStyle   | object    |                   |                                              |\n| headerToolbarMode    | string    | 'default'         | 'default' or 'filter'                        |\n| height               | string    | 'inherit'         |                                              |\n| initialSort          | object    |                   | {column: 'column key', order: 'asc or desc'} |\n| multiSelectable      | bool      | false             |                                              |\n| onCellClick          | function  |                   |                                              |\n| onCellDoubleClick    | function  |                   |                                              |\n| onFilterValueChange  | function  |                   | Should set 'showHeaderToolbar' to true first |\n| onNextPageClick      | function  |                   |                                              |\n| onPreviousPageClick  | function  |                   |                                              |\n| onRowSelection       | function  |                   |                                              |\n| onRowSizeChange      | function  |                   |                                              |\n| onSortOrderChange    | function  |                   |                                              |\n| page                 | number    | 1                 |                                              |\n| rowSize              | number    | 10                |                                              |\n| rowSizeLabel         | string    | 'Rows per page:'  |                                              |\n| rowSizeList          | array     | [10, 30, 50, 100] |                                              |\n| selectable           | bool      | false             |                                              |\n| selectedRows         | array     | []                |                                              |\n| showCheckboxes       | bool      | false             |                                              |\n| showFooterToolbar    | bool      | true              |                                              |\n| showHeaderToolbar    | bool      | false             |                                              |\n| showHeaderToolbarFilterIcon | bool | true            |                                              |\n| showRowHover         | bool      | false             |                                              |\n| showRowSizeControls  | bool      | false             |                                              |\n| summaryLabelTemplate | function  |                   |                                              |\n| tableBodyStyle       | object    |                   |                                              |\n| tableHeaderColumnStyle | object  |                   |                                              |\n| tableHeaderStyle     | object    |                   |                                              |\n| tableRowColumnStyle  | object    |                   |                                              |\n| tableRowStyle        | object    |                   |                                              |\n| tableStyle           | object    |                   |                                              |\n| tableWrapperStyle    | object    |                   |                                              |\n| title                | string    |                   | Should set 'showHeaderToolbar' to true first |\n| titleStyle           | object    |                   | Should set 'showHeaderToolbar' to true first |\n| toolbarIconRight     | node      |                   | Can be an array of IconButton nodes          |\n\n## Column settings\n| Name                 | Type      | Default           | Description                                  |\n|----------------------|-----------|-------------------|----------------------------------------------|\n| key                  | string    |                   |                                              |\n| label                | string    |                   |                                              |\n| sortable             | bool      | false             |                                              |\n| tooltip              | string    |                   |                                              |\n| className            | string    |                   |                                              |\n| render               | function  |                   |                                              |\n| alignRight           | bool      |                   |                                              |\n| style                | object    |                   | Inline column styles                         |\n\n### Setting example\n```javascript\n{\n  key: 'name',\n  label: 'Dessert (100g serving)',\n  sortable: true,\n  tooltip: 'Dessert (100g serving)',\n  className: 'important-column',\n  style: {\n    width: 250,\n  },\n  render: (name, all) =\u003e \u003cp\u003e{name}\u003c/p\u003e\n}\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyojin%2Fmaterial-ui-datatables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyojin%2Fmaterial-ui-datatables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyojin%2Fmaterial-ui-datatables/lists"}