{"id":26964415,"url":"https://github.com/nicklayb/react-tabledata","last_synced_at":"2025-06-20T20:40:44.071Z","repository":{"id":57346139,"uuid":"79510601","full_name":"nicklayb/react-tabledata","owner":"nicklayb","description":"A react component for asynchroneus data display using axios","archived":false,"fork":false,"pushed_at":"2017-07-17T15:58:14.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-05T08:41:05.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nicklayb.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":"2017-01-20T00:51:52.000Z","updated_at":"2017-01-20T02:11:12.000Z","dependencies_parsed_at":"2022-09-17T23:21:45.562Z","dependency_job_id":null,"html_url":"https://github.com/nicklayb/react-tabledata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicklayb/react-tabledata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Freact-tabledata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Freact-tabledata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Freact-tabledata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Freact-tabledata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicklayb","download_url":"https://codeload.github.com/nicklayb/react-tabledata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Freact-tabledata/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261013998,"owners_count":23097150,"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":[],"created_at":"2025-04-03T06:31:22.629Z","updated_at":"2025-06-20T20:40:39.060Z","avatar_url":"https://github.com/nicklayb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-tabledata\n\n###### By Nicolas Boisvert :: nicklay@me.com\n\n### A react component for displaying data in a table. Yup. Simple as that\n\nThe major purposes of this project is to be able to have an async tabledata for displaying data in a fully customizable way. Try it out [right here](https://github.com/nicklayb/react-tabledata-async) and improve it as much as you can!\n\n## Installation\n\nI recommand a npm installation by :\n```\nnpm install --save react-tabledata\n```\n\n## Examples\n\nThis is a concrete example of how you can use it to display an array of object\n\n```jsx\nimport React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport { Tabledata, Tableheader } from '../src/';\n\nclass Example extends Component {\n    render() {\n        let data = [\n            { id: 1, firstname: 'John', lastname: 'Doe', email: 'jdoe@internet.com' },\n            { id: 2, firstname: 'Johnny', lastname: 'Doewy', email: 'jdoewy@internet.com' },\n            { id: 3, firstname: 'Johanne', lastname: 'Doewesse', email: 'jdoewesse@internet.com' },\n        ];\n        return (\n            \u003cdiv\u003e\n                \u003cTabledata datas={data}\u003e\n                    \u003cTableheader attribute={'firstname'}\u003eFirstname\u003c/Tableheader\u003e\n                    \u003cTableheader attribute={'lastname'}\u003eLastname\u003c/Tableheader\u003e\n                    \u003cTableheader renderCell={(_content, _index, row) =\u003e (row.firstname + ' ' + row.lastname)}\u003eFullname\u003c/Tableheader\u003e\n                    \u003cTableheader attribute={'email'}\u003eEmail\u003c/Tableheader\u003e\n                    \u003cTableheader renderCell={(_content, _index, row) =\u003e (\u003cbutton\u003e{row.id}\u003c/button\u003e)}\u003eBtn\u003c/Tableheader\u003e\n                \u003c/Tabledata\u003e\n            \u003c/div\u003e\n        );\n    }\n}\n\ndocument.addEventListener('DOMContentLoaded', () =\u003e {\n    ReactDOM.render(\n        \u003cExample/\u003e,\n        document.querySelector('#react-app')\n    );\n});\n```\n\n### Tabledata\n\nThe `Tabledata` component is the table container. It requires at least a `datas` attribute matching your datas. Once you'll set the state the table will be updated automatically. You also may specify a `renderRow` attribute with an arrow function that returns the render for every rows. If you want to add classes to the `\u003ctable\u003e` tag, just pass in a `className` attribute.\n\n### Tableheader\n\nThe `Tableheader` matches all the `\u003cth\u003e` tags you'll want. If you want it to display the value of an object attribute, you pass in the `attribute` attribute. In the example, you can see that with have 3 `Tableheader` with attribute and 2 computed header. You can also pass in an attribute `renderCell` that will render each cell of the header.\n\n## Conclusion\n\nThank you for using, testing and improving it and feel free to contact me for any question.\n\nEnding joke :\n\u003e If you can't understand recursivity, read this sentence again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklayb%2Freact-tabledata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicklayb%2Freact-tabledata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklayb%2Freact-tabledata/lists"}