Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-lightbox

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-lightbox

Ember Cli Addon for Lightbox2

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
63
decreased by-13.7%
Maintainers
1
Weekly downloads
 
Created
Source

Ember-cli-lightbox Build Status

A lightbox component for ember using Lightbox2.

Usage

  • ember install ember-cli-lightbox

Preview image on image click

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

Preview image on some DOM click

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

Configuration

Setting global lightbox options:

// config/enironment.js
module.exports = function(environment) {
  var ENV = {
    //...
    'ember-cli-lightbox': {
      lightboxOptions: {
        alwaysShowNavOnTouchDevices: false,
        albumLabel: "Image %1 of %2",
        disableScrolling: false,
        fadeDuration: 500,
        fitImagesInViewport: true,
        maxWidth: 1000,
        maxHeight: 1000,
        positionFromTop: 50,
        resizeDuration: 700,
        showImageNumberLabel: true
      }
    }
  };
  //...

  return ENV;
};

Ember Compatibility Table

Ember VersionEmber-Cli-Lightbox Version
1.8 through 1.100.2.0
1.11 through 1.130.3.0 =< x < 1.0.0
2.0 and beyond>=1.0.0
Addons>=2.0.0

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 i
# 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/.

Keywords

FAQs

Package last updated on 28 May 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc