{"id":18685797,"url":"https://github.com/grapesjs/components-lory","last_synced_at":"2025-04-12T04:51:41.806Z","repository":{"id":57253124,"uuid":"116814390","full_name":"GrapesJS/components-lory","owner":"GrapesJS","description":"GrapesJS Slider Component by using lory","archived":false,"fork":false,"pushed_at":"2018-01-09T12:40:11.000Z","size":74,"stargazers_count":29,"open_issues_count":6,"forks_count":30,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T07:18:17.778Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrapesJS.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":"2018-01-09T12:39:27.000Z","updated_at":"2024-09-15T23:18:47.000Z","dependencies_parsed_at":"2022-09-06T05:20:17.953Z","dependency_job_id":null,"html_url":"https://github.com/GrapesJS/components-lory","commit_stats":null,"previous_names":["artf/grapesjs-lory-slider"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-lory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-lory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-lory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-lory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapesJS","download_url":"https://codeload.github.com/GrapesJS/components-lory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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-11-07T10:24:18.607Z","updated_at":"2025-04-12T04:51:41.785Z","avatar_url":"https://github.com/GrapesJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrapesJS Lory Slider\n\n\nSlider component by using [lory](https://github.com/meandmax/lory)\n\n[Demo](http://grapesjs.com/demo.html)\n\n\n## Requirements\n* GrapesJS v0.12.60 or higher\n\n\n## Summary\n\n* Plugin name: `grapesjs-lory-slider`\n* Components\n  * `lory-slider`\n  * `lory-slides`\n  * `lory-slide`\n  * `lory-frame`\n  * `lory-prev`\n  * `lory-next`\n* Blocks\n  * `lory-slider`\n\n\n\n\n## Options\n\n| Option | Description | Default |\n|-|-|-\n| `sliderBlock` | Object to extend the default slider block, eg. `{ label: 'Slider', attributes: { ... } }` | `{}` |\n| `sliderProps` | Object to extend the default slider properties, eg. `{ name: 'My Slider', draggable: false, ... }` | `{}` |\n| `frameProps` | Object to extend the default slider frame properties | `{}` |\n| `slidesProps` | Object to extend the default slides properties | `{}` |\n| `slideProps` | Object to extend the default slide properties | `{}` |\n| `prevProps` | Object to extend the default previous nav properties | `{}` |\n| `nextProps` | Object to extend the default next nav properties | `{}` |\n| `slideEls` | Default slides | `\u003cdiv class=\"gjs-lory-slide\"\u003e\u003c/div\u003e...` (3 slides) |\n| `prevEl` | Previous nav element string (eg. HTML string) | `\u003csvg...` (left arrow svg icon) |\n| `nextEl` | Next nav element string (eg. HTML string) | `\u003csvg...` (right arrow svg icon) |\n| `classFrame` | Class name for the slider frame | `gjs-lory-frame` |\n| `classSlides` | Class name for slides container | `gjs-lory-slides` |\n| `classSlide` | Class name for slide container | `gjs-lory-slide` |\n| `classPrev` | Class name for slider previous control | `gjs-lory-prev` |\n| `classNext` | Class name for slider next control | `gjs-lory-next` |\n| `script` | Script to load dynamically in case no `lory` instance was found | `https://cdnjs.cloudflare.com/ajax/libs/lory.js/2.3.4/lory.min.js` |\n\n\n\n\n\n## Download\n\n* CDN\n  * `https://unpkg.com/grapesjs-lory-slider`\n* NPM\n  * `npm i grapesjs-lory-slider`\n* GIT\n  * `git clone https://github.com/artf/grapesjs-lory-slider.git`\n\n\n\n\n\n## Usage\n\n```html\n\u003clink href=\"https://unpkg.com/grapesjs/dist/css/grapes.min.css\" rel=\"stylesheet\"/\u003e\n\u003cscript src=\"https://unpkg.com/grapesjs\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/grapesjs-lory-slider.min.js\"\u003e\u003c/script\u003e\n\n\u003cdiv id=\"gjs\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  var editor = grapesjs.init({\n      container : '#gjs',\n      ...\n      plugins: ['grapesjs-lory-slider'],\n      pluginsOpts: {\n        'grapesjs-lory-slider': {\n          // options\n        }\n      }\n  });\n\u003c/script\u003e\n```\n\n\n\n\n\n## Development\n\nClone the repository\n\n```sh\n$ git clone https://github.com/artf/grapesjs-lory-slider.git\n$ cd grapesjs-lory-slider\n```\n\nInstall dependencies\n\n```sh\n$ npm i\n```\n\nThe plugin relies on GrapesJS via `peerDependencies` so you have to install it manually\n\n```sh\n$ npm i grapesjs --no-save\n```\n\nStart the dev server\n\n```sh\n$ npm start\n```\n\n\n\n\n\n## License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fcomponents-lory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapesjs%2Fcomponents-lory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fcomponents-lory/lists"}