Lightweight, full customizable addon for lightGallery plugin! This addon is compatible with fastboot!
ember install ember-light-gallery
Simple component
With provide collection param
export default Controller.extend({
images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg']
})
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
Or with options param
export default Controller.extend({
images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg'],
options: {thumbnail: false}
})
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' }
})
- Captions
- Videos
- Demo