{"id":29673041,"url":"https://github.com/notchris/payload-table-field","last_synced_at":"2025-07-22T21:09:39.970Z","repository":{"id":226113826,"uuid":"767805757","full_name":"notchris/payload-table-field","owner":"notchris","description":"A table field (React Table) for Payload","archived":false,"fork":false,"pushed_at":"2024-08-06T01:21:09.000Z","size":549,"stargazers_count":18,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T07:27:46.816Z","etag":null,"topics":["payload-plugin","payloadcms","react-table","table"],"latest_commit_sha":null,"homepage":"https://payloadcms.com/","language":"TypeScript","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/notchris.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":"2024-03-05T23:35:08.000Z","updated_at":"2025-05-01T21:25:41.000Z","dependencies_parsed_at":"2024-05-09T22:47:06.309Z","dependency_job_id":"c7362362-74aa-4243-b737-1a174102f15f","html_url":"https://github.com/notchris/payload-table-field","commit_stats":null,"previous_names":["notchris/payload-table-field"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/notchris/payload-table-field","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-table-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-table-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-table-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-table-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notchris","download_url":"https://codeload.github.com/notchris/payload-table-field/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-table-field/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266573265,"owners_count":23950189,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["payload-plugin","payloadcms","react-table","table"],"created_at":"2025-07-22T21:09:39.306Z","updated_at":"2025-07-22T21:09:39.960Z","avatar_url":"https://github.com/notchris.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payload Table Field\n#### Adds a table field (using [React Table](https://tanstack.com/table/latest)) to [Payload](https://payloadcms.com/).\n\n### Features:\n\n- Display / Edit data using [React Table](https://tanstack.com/table/latest)\n- Pagination\n- Sorting\n- Row Selection\n\n\n![image](https://github.com/notchris/payload-table-field/blob/main/example.png?raw=true)\n\n\n## Installation\n\n```bash\n  yarn add payload-table-field\n  #OR\n  npm i payload-table-field\n```\n\n## Basic Usage\n\nImport the field and then use it in your payload collection fields array.\n\n```ts\n// import plugin\nimport { CollectionConfig, Field } from 'payload/types'\nimport { tableField } from 'payload-table-field'\n\nimport mockData from '../mocks/mockData'\n\nconst Examples: CollectionConfig = {\n  slug: 'examples',\n  admin: {\n    useAsTitle: 'title',\n  },\n  fields: [\n    {\n      type: 'text',\n      name: 'title',\n    },\n    tableField(\n      {\n        name: 'table_example',\n        label: 'Example Table - Movies',\n        defaultValue: mockData,\n      },\n      {\n        pagination: true, // Enable pagination?\n        paginationPageSize: 10, // Default pagination page size\n        paginationPageSizes: [5, 10, 25, 50, 100], // Available pagination page sizes\n        editable: false, // Allow cells to be edited?\n        rowSelection: true, // Enable row selection\n        columns: [\n          {\n            key: 'id',\n            name: 'ID',\n            enableSorting: true // Allow this column to be sorted\n          },\n          { key: 'title', name: 'Title' },\n          { key: 'year', name: 'Year' },\n        ],\n      },\n    ) as Field,\n  ],\n}\n\nexport default Examples\n```\n\n### Note\n\nWhile this plugin is still in development, the basic feature set of React Table has been implemented.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotchris%2Fpayload-table-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotchris%2Fpayload-table-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotchris%2Fpayload-table-field/lists"}