Socket
Socket
Sign inDemoInstall

ember-image-slider

Package Overview
Dependencies
192
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-image-slider

Ember addon. Image slider and picker.


Version published
Weekly downloads
13
increased by1200%
Maintainers
1
Install size
19.1 MB
Created
Weekly downloads
 

Readme

Source

Ember-image-slider (and picker)

Still alpha :).

Install

1. Install the addon

ember install ember-image-slider

2. Insert styles

Import the scss from the dummy app: https://github.com/MartinMalinda/ember-image-slider/blob/master/tests/dummy/app/styles/app.scss

(currently uses material icons, you may need to import the material icons font or style navigation arrows yourself)

Usage

Insert the component in your template:

{{#ember-image-slider
	content=model
	limit=40
	shouldDisplayArrows=true
	afterPick=(action 'pickImage') as |image|}}
	<div>This image has width:{{image.width}}</div>
{{/ember-image-slider}}

Content is expected to be an array of objects with src and width properties:


images: [{
		src: 'img1.jpg',
		width: 200,
		myImageName: 'Image 1'
	},
	{
		src: 'img2.jpg',
		width: 400
	},
	{
		src: 'img3.jpg',
		width: 600
	}]

##Notes

Multiselection should be easily achievable by overriding the beforePick action.

Keywords

FAQs

Last updated on 17 Mar 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc