/ember-cli-lightbox

Ember CLI Addon for lightbox2

Primary LanguageJavaScript

Ember-cli-lightbox Build Status

A lightbox component for ember using Lightbox2.

Usage

  • npm install --save ember-cli-lightbox
  • ember g ember-cli-lightbox

Preview image on image click

{{light-box href=imageUrl
			data-lightbox=name 
			data-title=title
			data-class=imgClassName}}

Preview image on some DOM click

{{#light-box 	href=imageUrl
				data-lightbox=name
				data-title=title
				inlineImage=false}}
    <!-- DOM Element here -->
{{/light-box}}

Demo

Check out the demo on github pages. Alternatively you can clone this repo and run the app

$ npm install -g ember-cli
$ git clone git@github.com:ramybenaroya/ember-cli-lightbox
$ cd ember-cli-lightbox
# install dependencies
$ npm install; bower install
$ ember g ember-cli-lightbox
# fire up local server
$ ember serve

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.