# luxal-lightbox

> This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.0.

Latest version **2.2.0** (published 2022-05-28) · 0 weekly downloads

## Install

```sh
npm install luxal-lightbox
pnpm add luxal-lightbox
yarn add luxal-lightbox
bun add luxal-lightbox
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2022-05-28 |
| First published | 2022-03-16 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 95.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | luxal99 |

## Links

- npm: https://www.npmjs.com/package/luxal-lightbox
- npm.io page: https://npm.io/package/luxal-lightbox

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Recent versions

- 2.2.0 (latest) — 2022-05-28
- 7.0.2 — 2022-03-31
- 7.0.1 — 2022-03-31
- 7.0.0 — 2022-03-16

## README

# LuxalLightbox

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.0.

## Pre-requirements

1. Angular 13
2. Installed angular material

## Integration to your project

``npm i luxal-lightbox``
1. Import LuxalLightboxModule into app.module.ts
2. After that you need to add LightBoxService to constructor in component which you want to open gallery.

### Example

```typescript
import {LuxalLightboxService} from "./luxal-lightbox.service";

export class CompoentWhichOpenGallery {

  constructor(private lightboxService: LuxalLightboxService) {}

  openLightBox(): void {
    /**
     *In method parameter [] you need to forward you JSON of images
     * JSON looks like
     * {'uri':'https://someuri.com/img34.jpg'}
     */
    this.lightboxService.open([{uri: 'https://www.placecage.com/640/360\n'},
      {uri: 'https://i.pinimg.com/originals/01/61/6b/01616b7daa1d2ef8846022bffc253d68.png'},
      {uri: 'https://www.swiss.com/content/dam/lx/images/pixels_variations/c-1079783203-2295925.jpg.transform/lh-dcep-transform-width-1440/img.jpg'},
    ])
  }
}
```

```html
<!--You can click on some other element which is not button-->
<button (click)="open()">Some button which open gallery</button>
```

### Lightbox

![img](https://firebasestorage.googleapis.com/v0/b/soy-smile-249718.appspot.com/o/lightbox%2FScreenshot%20from%202021-07-03%2013-45-37.png?alt=media&token=5462faa0-5654-4248-ae42-5112944d2e51)
![img](https://firebasestorage.googleapis.com/v0/b/soy-smile-249718.appspot.com/o/lightbox%2FScreenshot%20from%202021-07-03%2013-45-40.png?alt=media&token=db8352ad-f65e-488f-86cb-b25b2f7795f4)

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