# ember-light-gallery

> Ember addon for ambitious gallery by lightGallery

Latest version **0.0.2** (published 2017-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-light-gallery
pnpm add ember-light-gallery
yarn add ember-light-gallery
bun add ember-light-gallery
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-11-29 |
| First published | 2017-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^4.5 \|\| 6.* \|\| >= 7.* |
| Dependencies | 12 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Marcin Lazar |
| Maintainers | marucjmar |
| Keywords | ember-addon, lightbox, gallery, light, lightgallery, light-gallery, images, image, ember, cli, marucjmar |

## Links

- npm: https://www.npmjs.com/package/ember-light-gallery
- Repository: https://github.com/marucjmar/ember-light-gallery
- Homepage: https://github.com/marucjmar/ember-light-gallery#readme
- Issues: https://github.com/marucjmar/ember-light-gallery/issues
- npm.io page: https://npm.io/package/ember-light-gallery

## Dependencies (12)

- [lg-hash](https://npm.io/package/lg-hash.md) ^1.0.3
- [lg-zoom](https://npm.io/package/lg-zoom.md) ^1.1.0
- [lg-pager](https://npm.io/package/lg-pager.md) ^1.0.2
- [lg-share](https://npm.io/package/lg-share.md) ^1.1.0
- [lg-video](https://npm.io/package/lg-video.md) ^1.2.0
- [lg-autoplay](https://npm.io/package/lg-autoplay.md) ^1.0.4
- [lg-thumbnail](https://npm.io/package/lg-thumbnail.md) ^1.1.0
- [lightgallery](https://npm.io/package/lightgallery.md) ^1.6.5
- [lg-fullscreen](https://npm.io/package/lg-fullscreen.md) ^1.0.1
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^6.6.0
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^2.0.1
- [fastboot-transform](https://npm.io/package/fastboot-transform.md) ^0.1.2

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-11-29
- 0.0.1 — 2017-11-28

## README

# Ember lightGallery integration Addon

Lightweight, full customizable addon for [lightGallery](http://sachinchoolur.github.io/lightGallery/) plugin! This addon is compatible with fastboot!

# Installation
```bash
ember install ember-light-gallery
```

# Usage documentation

Simple component

```hbs
{{#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
```js
export default Controller.extend({
  images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg']
})
```

```hbs
{{#light-gallery-content collection=images as |image gallery|}}
  {{gallery.image href=image}}
{{/light-gallery-content}}
```


# Configuration
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


# Customization

Params is full suported to [lightgallery documentation](http://sachinchoolur.github.io/lightGallery/docs/api.html)

You can provide explicit params to component
```hbs
{{#light-gallery-content collection=images thumbnail=false as |image gallery|}}
  {{gallery.image href=image}}
{{/light-gallery-content}}
```

Or with options param
```js
export default Controller.extend({
  images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg'],
  options: {thumbnail: false}
})
```
```hbs
{{#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
```js
export default Controller.extend({
  images: ['http://my-image1.jpg', 'http://my-image2.jpg', 'http://my-image3.jpg'],
  options: { mode: 'lg-zoom-in-out' }
})
```
```hbs
{{#light-gallery-content collection=images thumbnail=false options=options as |image gallery|}}
  {{gallery.image href=image}}
{{/light-gallery-content}}
```

# To do
- [ ] Captions
- [ ] Videos
- [ ] Demo

---
_Source: https://npm.io/package/ember-light-gallery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
