{"id":19357109,"url":"https://github.com/activewidgets/react","last_synced_at":"2025-08-12T16:05:50.904Z","repository":{"id":43866053,"uuid":"120735862","full_name":"activewidgets/react","owner":"activewidgets","description":"Virtualized React Data Grid","archived":false,"fork":false,"pushed_at":"2023-04-30T18:49:20.000Z","size":1326,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T07:05:10.599Z","etag":null,"topics":["data-grid","data-table","datagrid","datatable","grid","react","scrolling","table","virtual","virtualized"],"latest_commit_sha":null,"homepage":"https://activewidgets.com/react/data-grid/","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/activewidgets.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-08T08:53:32.000Z","updated_at":"2022-03-16T20:27:28.000Z","dependencies_parsed_at":"2024-01-15T17:39:30.492Z","dependency_job_id":"0cba03ff-8ff3-4d25-9b36-1f924d009705","html_url":"https://github.com/activewidgets/react","commit_stats":{"total_commits":169,"total_committers":1,"mean_commits":169.0,"dds":0.0,"last_synced_commit":"0d8a760f4b6047897fadbf884c315dc57da1b6ca"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/activewidgets/react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activewidgets%2Freact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activewidgets%2Freact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activewidgets%2Freact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activewidgets%2Freact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activewidgets","download_url":"https://codeload.github.com/activewidgets/react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activewidgets%2Freact/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269425296,"owners_count":24414641,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data-grid","data-table","datagrid","datatable","grid","react","scrolling","table","virtual","virtualized"],"created_at":"2024-11-10T07:06:21.149Z","updated_at":"2025-08-12T16:05:50.870Z","avatar_url":"https://github.com/activewidgets.png","language":"JavaScript","readme":"\n### \n\n# ActiveWidgets/React • Datagrid \n\n[![npm version](https://img.shields.io/npm/v/@activewidgets/react)](https://www.npmjs.com/package/@activewidgets/react \"View this project on npm\")\n[![npm downloads](https://img.shields.io/npm/dm/@activewidgets/react)](https://www.npmjs.com/package/@activewidgets/react \"npm package downloads/month\")\n[![Github issues](https://img.shields.io/github/issues/activewidgets/react)](https://github.com/activewidgets/react/issues \"See Github issues\")\n[![Github repo](https://img.shields.io/github/stars/activewidgets/react?label=GitHub\u0026style=social)](https://github.com/activewidgets/react \"Open Github repo\")\n\nActiveWidgets is a multi-framework UI component library. This package provides [virtualized datagrid component for React](https://activewidgets.com/react/data-grid/).\n\n[Live demo](https://react.activewidgets.com) / [Developer guide](https://activewidgets.com/guide/) / [API reference](https://activewidgets.com/api/)\n\n[![Datagrid demo](https://cdn.activewidgets.com/assets/screens/demo.png)](https://react.activewidgets.com)\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [CDN links](#cdn-links)\n- [Data properties](#data-properties)\n- [User events](#user-events)\n\n## Installation\n\nAdd [@activewidgets/react](https://activewidgets.com/api/packages/react/) to your project dependencies -\n\n```sh\n\u003e npm i --save @activewidgets/react\n```\n\n## Usage\n\nNow you can import ActiveWidgets component classes -\n\n```js\nimport { Datagrid } from \"@activewidgets/react\";\n```\n\nand use them as any standard React component.\n\n```js\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Datagrid } from \"@activewidgets/react\";\n\nconst rows = [\n    { message: 'Hello, World!' }\n];\n\nfunction App(){\n    return \u003cDatagrid rows={rows} /\u003e\n}\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById(\"app\"));\n```\n\n[Live example](https://react.activewidgets.com/hello-world/) | [Source on github](https://github.com/activewidgets/react/tree/master/examples/hello-world) | [Edit on stackblitz](https://stackblitz.com/github/activewidgets/react/tree/master/examples/hello-world?file=src/index.js)\n\n## CDN links\n\nFor quick prototyping the package is also available over ActiveWidgets CDN -\n\n```html\n\u003cscript src=\"https://cdn.activewidgets.com/react\"\u003e\u003c/script\u003e\n```\n\nIn this case you will find the components at `ActiveWidgets.React` global namespace.\n\n```js\nvar Datagrid = ActiveWidgets.React.Datagrid;\n\nvar rows = [\n    { framework: 'React', source: 'CDN', language: 'ES5' }\n];\n\nvar App = React.createElement(Datagrid, { rows: rows });\nReactDOM.render(App, document.getElementById(\"app\"));\n```\n\n[Live example](https://react.activewidgets.com/examples/local/cdn-es5/) | [Source on github](https://github.com/activewidgets/react/tree/master/examples/cdn-es5) | [Edit on stackblitz](https://stackblitz.com/github/activewidgets/react/tree/master/examples/cdn-es5)\n\n## Data properties\n\nYou have to provide [columns](https://activewidgets.com/api/datagrid/columns/) and [rows](https://activewidgets.com/api/datagrid/rows/) properties to the datagrid to show some data. The properties of each `column` object define how the data will be rendered -\n\n- [field](https://activewidgets.com/api/datagrid/columns/#field) - where the cell data comes from (string|function)\n- [header](https://activewidgets.com/api/datagrid/columns/#header) - column header (string|object)\n- [width](https://activewidgets.com/api/datagrid/columns/#width) - column width (number, in pixels)\n- [align](https://activewidgets.com/api/datagrid/columns/#align) - cell text alignment (left|right|center)\n- [format](https://activewidgets.com/api/datagrid/columns/#format) - number/date format (string|function)\n- [fixed](https://activewidgets.com/api/datagrid/columns/#fixed) - fixed (true/false) for columns on the left or right side\n\nThe `style` (string|object) or `className` properties allow to change the styling of the column and cell elements.\n\n```js\nconst columns = [\n  {header: 'Code', field: 'customerID', width: 80, style: 'background:#def', fixed: true},\n  {header: 'Company Name', field: 'companyName', width: 160},\n  {header: 'Contact', field: 'contactName', width: 120},\n  {header: 'Title', field: 'contactTitle', width: 120},\n  {header: 'Address', field: 'address', width: 120, align: 'right'}\n];\n\nconst rows = northwind.customers;\n\nfunction App(){\n    return \u003cDatagrid columns={columns} rows={rows} /\u003e\n}\n```\n\n[Live example](https://react.activewidgets.com/columns/) | [Source on github](https://github.com/activewidgets/react/tree/master/examples/columns) | [Edit on stackblitz](https://stackblitz.com/github/activewidgets/react/tree/master/examples/columns?file=src/index.js)\n\n\n## User events\n\nIn addition to the standard DOM keyboard and mouse events the datagrid emits composite \n[mouse](https://activewidgets.com/api/datagrid/mouse-event/) event which makes it easier to find the elements affected by the user action -\n\n```js\nfunction onMouse({row, column}){\n    alert(`row ${row.key} clicked!`);\n}\n\nfunction App(){\n    return \u003cDatagrid onMouse={onMouse} columns={columns} rows={rows} /\u003e\n}\n```\n\n[Live example](https://react.activewidgets.com/events/) | [Source on github](https://github.com/activewidgets/react/tree/master/examples/events) | [Edit on stackblitz](https://stackblitz.com/github/activewidgets/react/tree/master/examples/events?file=src/index.js)\n\n## More info\n\n- [Live demo](https://react.activewidgets.com) \n- [Developer guide](https://activewidgets.com/guide/) \n- [API reference](https://activewidgets.com/api/)\n- [Licensing](https://activewidgets.com/licenses/)\n- [Support forum](https://activewidgets.com/messages/)\n\n\n---\n\n[![ActiveWidgets](https://activewidgets.com/include/logo/aw-logo-40.png)](https://activewidgets.com) \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivewidgets%2Freact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivewidgets%2Freact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivewidgets%2Freact/lists"}