{"id":24075799,"url":"https://github.com/fancygrid/fancygrid-react","last_synced_at":"2025-04-30T05:47:58.104Z","repository":{"id":251734074,"uuid":"119044619","full_name":"FancyGrid/FancyGrid-React","owner":"FancyGrid","description":"FancyGrid React Component","archived":false,"fork":false,"pushed_at":"2020-11-22T16:07:01.000Z","size":41,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T05:47:48.560Z","etag":null,"topics":["grid","javascript","react","table"],"latest_commit_sha":null,"homepage":"https://fancygrid.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FancyGrid.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-26T11:34:50.000Z","updated_at":"2020-12-04T17:53:29.000Z","dependencies_parsed_at":"2024-08-05T12:23:36.068Z","dependency_job_id":null,"html_url":"https://github.com/FancyGrid/FancyGrid-React","commit_stats":null,"previous_names":["fancygrid/fancygrid-react"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyGrid-React","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyGrid-React/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyGrid-React/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyGrid-React/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FancyGrid","download_url":"https://codeload.github.com/FancyGrid/FancyGrid-React/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251651221,"owners_count":21621702,"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":["grid","javascript","react","table"],"created_at":"2025-01-09T19:29:15.647Z","updated_at":"2025-04-30T05:47:58.085Z","avatar_url":"https://github.com/FancyGrid.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# FancyGrid-React\n\n*A React Component for FancyGrid*\n\nQuickly create dynamic JavaScript grids that react when your data changes by utilizing the FancyGrid library and Facebook's React together.\n\n## Resources:\n* Want to see the application running? See our [sample repo](https://github.com/FancyGrid/FancyGrid-React-Seed)\n* [Docs](https://fancygrid.com/docs/)\n* [Support](https://fancygrid.com/support/)\n\n## Quick Start\n\n### Install\n```\nnpm install fancygrid-react\n```\n\n### Usage\n\nThe FancyGrid-React Component exposes 3 components.\n* `Grid`\n* `Form`\n* `Tab`\n\n### Components\nAll components are wrappers around the entire widgets of FancyGrid.  \nThe simplest one approach is to use config with widget options.  \n\n```js\nimport {Grid, Fancy, Form, Tab} from 'fancygrid-react';\n\n...\nconst getFancyGrid = () =\u003e {\n  return (\n    \u003cdiv style={{marginTop: '5px'}}\u003e\n      \u003cForm\n        id={'myForm'}\n        theme={'extra-gray'}\n        title={'Form'}\n        items={[{\n          name: 'id',\n          type: 'hidden'\n        },{\n          label: 'Name',\n          emptyText: 'Name',\n          name: 'name'\n        },{\n          label: 'SurName',\n          emptyText: 'SurName',\n          name: 'surname'\n        }]}\n        buttons={[{\n          text: 'Save',\n          handler: () =\u003e {\n            let grid = Fancy.getGrid('myGrid'),\n              form = Fancy.getForm('myForm'),\n              values = form.get(),\n              id = values.id;\n\n            grid.setById(id, values);\n            grid.update({\n              type: 'row'\n            });\n          }\n        }]}\u003e\n      \u003c/Form\u003e\n      \u003cGrid\n        id={'myGrid'}\n        height={500}\n        theme={'extra-gray'}\n        exporter={true}\n        selModel={{\n          activeCell: true,\n          type: 'rows'\n        }}\n        defaults={{\n          resizable: true,\n          menu: true\n        }}\n        events={[{\n          selectrow: (grid, rowIndex, dataItem: any) =\u003e {\n            let form = Fancy.getForm('myForm');\n\n            form.set(dataItem.data);\n          }\n        }]}\n        columns={getColumns()}\n        data={getData()}\u003e\n      \u003c/Grid\u003e\n    \u003c/div\u003e\n  );\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancygrid%2Ffancygrid-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffancygrid%2Ffancygrid-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancygrid%2Ffancygrid-react/lists"}