{"id":15759667,"url":"https://github.com/gartner/palustris-ra-lightbox","last_synced_at":"2025-11-07T14:30:20.806Z","repository":{"id":42447186,"uuid":"169038625","full_name":"gartner/palustris-ra-lightbox","owner":"gartner","description":"A Datagrid-component for React-admin, that wraps all images in a lightbox.","archived":false,"fork":false,"pushed_at":"2023-01-27T11:41:51.000Z","size":348,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T21:50:11.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gartner.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}},"created_at":"2019-02-04T06:51:53.000Z","updated_at":"2024-06-05T18:38:23.000Z","dependencies_parsed_at":"2023-02-15T08:46:26.855Z","dependency_job_id":null,"html_url":"https://github.com/gartner/palustris-ra-lightbox","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Fpalustris-ra-lightbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Fpalustris-ra-lightbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Fpalustris-ra-lightbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Fpalustris-ra-lightbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gartner","download_url":"https://codeload.github.com/gartner/palustris-ra-lightbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533068,"owners_count":19654617,"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":[],"created_at":"2024-10-04T10:22:22.599Z","updated_at":"2025-11-07T14:30:20.764Z","avatar_url":"https://github.com/gartner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cLightboxGrid\u003e` for react-admin\n\n\u003cLightboxGrid\u003e component for react-admin, that will add a Lightbox to all imagefields in the grid.\n\nIt will wrap a click-handler on all the images in the list, which will open the Lightbox. It returns just a DataGrid for the list.\n\n## Installation\n\n```sh\nnpm install @palustris/ra-lightboxgrid --save\n```\n\nor \n\n```sh\nyarn add @palustris/ra-lightboxgrid\n```\n\n## Usage\n\n```js\nimport {List, ImageField, TextField} from 'react-admin';\nimport {LightboxGrid} from '@palustris/ra-lightboxgrid;\n\nexport const ImageList = props =\u003e ( \n    \u003cList {...props}\u003e\n        \u003cLightboxGrid rowClick=\"edit\" imageSource=\"path\"\u003e\n            \u003cImageField source=\"thumbnail\" title=\"titel\" /\u003e\n            \u003cTextField source=\"titel\" /\u003e\n        \u003c/LightboxGrid\u003e\n    \u003c/List\u003e\n);\n\n```\n\nThe LightboxGrid takes all the props that a Datagrid does. It requires one prop for its own use: 'imageSource'. This is the field from the resource-record, that gives the url to the fullsize image to display.\n\n(In my use case, the api return a url for both a thumbnail and the full size image. I display the thumbnail in the Datagrid, and the full size image in the Lightbox).\n\n\n## License\n\nThis library is licensed under the [MIT Licence](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgartner%2Fpalustris-ra-lightbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgartner%2Fpalustris-ra-lightbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgartner%2Fpalustris-ra-lightbox/lists"}