{"id":15572937,"url":"https://github.com/dcoric/gl-table-data","last_synced_at":"2026-01-08T02:04:46.307Z","repository":{"id":42116622,"uuid":"137694997","full_name":"dcoric/gl-table-data","owner":"dcoric","description":"Table display set of data with sorting by columns and pagination","archived":false,"fork":false,"pushed_at":"2023-01-04T05:53:16.000Z","size":3424,"stargazers_count":0,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T14:18:38.223Z","etag":null,"topics":["bootstrap4","reactjs","reactjs-es6","tableview"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcoric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-17T23:49:22.000Z","updated_at":"2018-07-08T21:40:06.000Z","dependencies_parsed_at":"2023-02-02T00:02:07.907Z","dependency_job_id":null,"html_url":"https://github.com/dcoric/gl-table-data","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoric%2Fgl-table-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoric%2Fgl-table-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoric%2Fgl-table-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoric%2Fgl-table-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcoric","download_url":"https://codeload.github.com/dcoric/gl-table-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246149887,"owners_count":20731405,"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":["bootstrap4","reactjs","reactjs-es6","tableview"],"created_at":"2024-10-02T18:08:48.916Z","updated_at":"2026-01-08T02:04:46.272Z","avatar_url":"https://github.com/dcoric.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gl-table-data\n\n\u003e \n\n[![NPM](https://img.shields.io/npm/v/gl-table-data.svg)](https://www.npmjs.com/package/gl-table-data) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save gl-table-data\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport TableData from 'gl-table-data';\n\nexport default class App extends Component {\n  rowClickAction = (value) =\u003e {\n    console.log('This is clicked row value', value);\n  }\n  render () {\n    const data = [\n      {id: 1, name: 'Test row 1', value: 11, date: new Date((new Date()).getTime() - 5000)},\n      {id: 2, name: 'Test row 2', value: 31, date: new Date((new Date()).getTime() - 15000)},\n      {id: 3, name: 'Test row 3', value: 17, date: new Date((new Date()).getTime() - 52000)},\n      {id: 4, name: 'Test row 4', value: 35, date: new Date((new Date()).getTime() - 45000)},\n      {id: 5, name: 'Test row 5', value: 22, date: new Date((new Date()).getTime() - 55000)},\n      {id: 6, name: 'Test row 6', value: 8, date: new Date((new Date()).getTime() - 99000)},\n      {id: 7, name: 'Test row 7', value: 6, date: new Date((new Date()).getTime() - 75000)},\n      {id: 8, name: 'Test row 8', value: 44, date: new Date((new Date()).getTime() - 0)},\n      {id: 9, name: 'Test row 9', value: 51, date: new Date((new Date()).getTime() - 4100)},\n      {id: 10, name: 'Test row 10', value: 23, date: new Date((new Date()).getTime() - 15500)},\n      {id: 11, name: 'Test row 11', value: 56, date: new Date((new Date()).getTime() - 22000)}\n    ];\n    return (\n      \u003cTableData numberOfRows={7} tableRowClick={value =\u003e this.rowClickAction(JSON.stringify(value))}\n        tableItemsList={data}\n        keyList={['id', 'name', 'value', 'date']}\n        tableColumnData={\n          {\n            id: 'ID',\n            id_width: 2,\n            name: 'Name',\n            name_width: 4,\n            value: 'Amount $',\n            value_width: 2,\n            value_table_column_style: {fontWeight: 'bold'},\n            date: 'Created at',\n            date_width: 4,\n            date_table_column_render_func: (date) =\u003e { return date.toLocaleString(); }\n          }\n        }\n      /\u003e\n    );\n  }\n}\n\n```\n\n## License\n\nMIT © [dcoric](https://github.com/dcoric)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcoric%2Fgl-table-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcoric%2Fgl-table-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcoric%2Fgl-table-data/lists"}