{"id":20332313,"url":"https://github.com/wavemaker/prefab-lightbox-image","last_synced_at":"2026-06-07T17:31:37.199Z","repository":{"id":52434330,"uuid":"362399015","full_name":"wavemaker/prefab-lightbox-image","owner":"wavemaker","description":"Prefab based on the lightbox kind of handling for images.","archived":false,"fork":false,"pushed_at":"2021-04-29T10:28:27.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-14T15:41:03.822Z","etag":null,"topics":["panzoom","prefabs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wavemaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-28T08:45:42.000Z","updated_at":"2023-11-02T16:48:28.000Z","dependencies_parsed_at":"2022-09-06T04:50:48.107Z","dependency_job_id":null,"html_url":"https://github.com/wavemaker/prefab-lightbox-image","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fprefab-lightbox-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fprefab-lightbox-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fprefab-lightbox-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fprefab-lightbox-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavemaker","download_url":"https://codeload.github.com/wavemaker/prefab-lightbox-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241851513,"owners_count":20030964,"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":["panzoom","prefabs"],"created_at":"2024-11-14T20:26:00.429Z","updated_at":"2026-06-07T17:31:34.724Z","avatar_url":"https://github.com/wavemaker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prefab-lightbox-image\n\n### Target:\n\nA Prefab which supports the pinch zoom, and flip of an image in the modal on click of thumbnail.\n\n\n### Libraries used: \n\n#### [PanZoom](https://github.com/anvaka/panzoom)  - This library  supports pinch zoom, which supports the DOM (text, image) and SVG.\n\n#### [Jquery Magnify](https://nzbin.github.io/magnify/) - This Library supports the image zoom feature and rotate in the modal.\n\n### Files Needed:\nJquery.magnify.js\nPanzoom.min.js\nJquery.magnify.css\nAnd Custom css for modal.\nmagnifyflip.css\n\n### Steps to Create a Prefab:\n* Go to Prefabs section, Click on Create a Prefab by providing the necessary data.\n* Click On File Explorer -\u003e Resources -\u003e click on Upload Files and upload the above listed files.\n* Click on Settings  -\u003e Config Prefab \n* Under the styles section add Jquery.magnify.css after that add magnifyflip.css.\n* Under the scripts section add Jquery.magnify.js after that add Panzoom.min.js.\n* Now Click on Properties  tab after adding resources.\n* Under the UI Properties click Add\n\n\t\t* Name : dataset , DataType : Object, IsList: True.\n\t\t* Name: toolbaroptions, DataType : Object, IsList: True.\n\t\t* Name: thumbnailclass, DataType : String. \n\n* Click on save and close the dialog.\n* Click on Pages  -\u003e under the widgets section search for a container.\n* Drag and drop Container and give a class name as ‘imageContainer’.\n* Click on script tab -\u003e And add the script (refer prefabPage.js).\n\n\n##### Note : Change the class , prefab properties names if changed.\n\n\n\n### Implementation:\nPush the changes and publish to Project.\nUnder the Prefabs section, Drag and Drop the Prefab added to the respective Project.\nNow Map the Data for the properties mentioned above , and click on preview to view .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavemaker%2Fprefab-lightbox-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavemaker%2Fprefab-lightbox-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavemaker%2Fprefab-lightbox-image/lists"}