{"id":28556498,"url":"https://github.com/fancygrid/fg-grid","last_synced_at":"2025-10-09T20:34:00.981Z","repository":{"id":292674354,"uuid":"883050890","full_name":"FancyGrid/fg-grid","owner":"FancyGrid","description":"JavaScript Data Grid","archived":false,"fork":false,"pushed_at":"2025-08-17T10:52:13.000Z","size":4551,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-25T02:29:23.049Z","etag":null,"topics":["grid","javascript","table","typescript"],"latest_commit_sha":null,"homepage":"https://fg-grid.com","language":"JavaScript","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.md","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,"zenodo":null}},"created_at":"2024-11-04T09:44:24.000Z","updated_at":"2025-08-17T10:52:16.000Z","dependencies_parsed_at":"2025-05-11T14:28:43.253Z","dependency_job_id":"444b1de8-84bf-4c39-95d5-cf6a1d147387","html_url":"https://github.com/FancyGrid/fg-grid","commit_stats":null,"previous_names":["fancygrid/fg-grid"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FancyGrid/fg-grid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2Ffg-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2Ffg-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2Ffg-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2Ffg-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FancyGrid","download_url":"https://codeload.github.com/FancyGrid/fg-grid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2Ffg-grid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002000,"owners_count":26083258,"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-10-09T02:00:07.460Z","response_time":59,"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":["grid","javascript","table","typescript"],"created_at":"2025-06-10T06:31:08.629Z","updated_at":"2025-10-09T20:34:00.932Z","avatar_url":"https://github.com/FancyGrid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FG-Grid\n\nBuild v0.9.5\n\nFG-Grid - Open source data grid library for building enterprise applications\n\n\u003cdiv align=\"center\"\u003e\n    \u003cpicture\u003e\n      \u003cimg width=\"100%\" alt=\"FG-Grid\" src=\"https://www.fg-grid.com/img/car-dealer-store-2.png\"/\u003e\n    \u003c/picture\u003e\n\u003c/div\u003e\n\n## Install\n\n#### *npm*\n```\nnpm install fg-grid\n```\n\n### React\n```\nnpm install fg-grid fg-grid-react-wrapper\n```\n\n#### *CDN*\n```\nhttps://cdn.jsdelivr.net/npm/fg-grid/styles/fg-grid.min.css\nhttps://cdn.jsdelivr.net/npm/fg-grid/dist/fg-grid.min.js\n```\n\n## Quick Start\nInclude a reference to the FG-Grid library\n```html\n\u003clink href=\"https://cdn.jsdelivr.net/npm/fg-grid/styles/fg-grid.min.css\" rel=\"stylesheet\"\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/fg-grid/dist/fg-grid.min.js\"\u003e\u003c/script\u003e\n```\nThe `Grid` object is now accessible.\n```html\n\u003cdiv id=\"grid\"\u003e\u003c/div\u003e\n\u003cscript\u003e\ndocument.addEventListener('DOMContentLoaded', () =\u003e {  \n  new Grid({\n    renderTo: 'grid',\n    width: 300,\n    height: 200,\n    data: [\n      { brand: 'Lexus', model: 'RX 350', price: 60000, year: 2021 },\n      { brand: 'Toyota', model: 'Land Cruiser Prado', price: 70000, year: 2022 },\n      { brand: 'Volkswagen', model: 'Tiguan', price: 38000, year: 2021 },\n      { brand: 'Volkswagen', model: 'Teramont', price: 60000, year: 2023 },\n      { brand: 'Mazda', model: 'CX-9', price: 45000, year: 2023 },\n      { brand: 'Honda', model: 'Pilot', price: 45000, year: 2023 },\n      { brand: 'Kia', model: 'Sorento', price: 40000, year: 2023 },\n    ],  \n    columns: [{\n      index: 'brand',\n      title: 'Brand',\n      type: 'string'\n    },{\n      index: 'model',\n      title: 'Model',\n      type: 'string'\n    },{\n      index: 'price',\n      title: 'Price',\n      type: 'currency'\n    },{\n      index: 'year',\n      title: 'Year',\n      type: 'number'\n    }]\n  });\n});\n\u003c/script\u003e\n```\n\n## TypeScript\nIn this example, we will use Vite with TypeScript, without frameworks.    \nYou only need to install `fg-grid`.\n```html\n\u003cdiv id=\"app\"\u003e\n  \u003cdiv style=\"max-width: 700px; margin: 0 auto;\"\u003e\n    \u003cdiv id=\"container\" style=\"width: 100%; height: 300px;\"\u003e\u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n \n```ts\nimport 'fg-grid/styles/fg-grid.css';\nimport { Grid } from 'fg-grid';\nimport type { Column } from 'fg-grid';\n\ninterface IRow {\n  brand: string;\n  model: string;\n  price: number;\n  year: number;\n}\n\nconst data: IRow[] = [\n  { brand: \"Lexus\", model: \"RX 350\", price: 60000, year: 2021 },\n  { brand: \"Lexus\", model: \"NX 300\", price: 50000, year: 2023 },\n  { brand: \"Toyota\", model: \"Land Cruiser Prado\", price: 70000, year: 2022 },\n  { brand: \"Toyota\", model: \"RAV4\", price: 35000, year: 2023 },\n  { brand: \"Volkswagen\", model: \"Tiguan\", price: 38000, year: 2021 },\n  { brand: \"Volkswagen\", model: \"Touareg\", price: 75000, year: 2023 },\n  { brand: \"Volkswagen\", model: \"Teramont\", price: 60000, year: 2023 },\n  { brand: \"Mazda\", model: \"CX-9\", price: 45000, year: 2023 },\n  { brand: \"Honda\", model: \"Pilot\", price: 45000, year: 2023 },\n  { brand: \"Nissan\", model: \"Pathfinder\", price: 48000, year: 2022 },\n  { brand: \"Hyundai\", model: \"Palisade\", price: 50000, year: 2023 },\n  { brand: \"Kia\", model: \"Sorento\", price: 40000, year: 2023 },\n  { brand: \"Ford\", model: \"Edge\", price: 42000, year: 2021 },\n  { brand: \"Chevrolet\", model: \"Traverse\", price: 45000, year: 2023 }\n]\n\nconst columns: Column\u003cIRow\u003e[] = [{\n  index: 'brand',\n  title: 'Brand',\n  type: 'string',\n  agFn: 'avg',\n},{\n  index: 'model',\n  title: 'Model',\n  type: 'string'\n},{\n  index: 'price',\n  title: 'Price',\n  type: 'currency'\n},{\n  index: 'year',\n  title: 'Year',\n  type: 'number'\n}]\n\nconst grid = new Grid\u003cIRow\u003e({\n  renderTo: 'container',\n  data: data,\n  defaults: {\n    width: 100,\n    sortable: true\n  },\n  columns: columns,\n  rowStyle: (params)=\u003e{\n    if(Number(params.item.price) \u003e 55000){\n      return {\n        'background-color': 'rgba(220, 107, 103, 0.2)'\n      }\n    }\n  }\n})\n```\n\n## Support\nIf you need any assistance or would like to report any bugs found in FancyGrid, please contact us at support@fancygrid.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancygrid%2Ffg-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffancygrid%2Ffg-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancygrid%2Ffg-grid/lists"}