
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
ember-light-gallery
Advanced tools
Lightweight, full customizable addon for lightGallery plugin! This addon is compatible with fastboot!
ember install ember-light-gallery
Simple component
{{#light-gallery-content as |gallery|}}
{{gallery.image href="http://my-image1.jpg"}}
{{gallery.image href="http://my-image2.jpg"}}
{{gallery.image href="http://my-image3.jpg"}}
{{/light-gallery-content}}
With provide collection param
export default Controller.extend({
images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg']
})
{{#light-gallery-content collection=images as |image gallery|}}
{{gallery.image href=image}}
{{/light-gallery-content}}
environment.js (optional config)
ENV = {
...,
'ember-light-gallery': {
plugins: ['thumbnail', 'fullscreen', 'zoom'],
transitions: true
}
}
Key | Type | Available Values | Default Value |
---|---|---|---|
plugins | Array of string | ['thumbnail', 'autoplay', 'video', 'fullscreen', 'pager', 'zoom', 'hash', 'share'] | ['thumbnail', 'fullscreen'] |
transitions | Boolean | true, false | true |
Params is full suported to lightgallery documentation
You can provide explicit params to component
{{#light-gallery-content collection=images thumbnail=false as |image gallery|}}
{{gallery.image href=image}}
{{/light-gallery-content}}
Or with options param
export default Controller.extend({
images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg'],
options: {thumbnail: false}
})
{{#light-gallery-content collection=images options=options as |image gallery|}}
{{gallery.image href=image}}
{{/light-gallery-content}}
You can mixin explicit params and options
param
export default Controller.extend({
images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg'],
options: { mode: 'lg-zoom-in-out' }
})
{{#light-gallery-content collection=images thumbnail=false options=options as |image gallery|}}
{{gallery.image href=image}}
{{/light-gallery-content}}
FAQs
Ember addon for ambitious gallery by lightGallery
We found that ember-light-gallery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.