Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ember-carousel
Advanced tools
An ember addon for Carousel component
From within your Ember CLI application, run the following:
ember install ember-carousel
Add invoke the component as follows
{{#carousel-container transitionInterval=400 as |ui controls|}}
<div class="carousel-body">
{{#ui.item}}
Emberjs
{{/ui.item}}
{{#ui.item}}
Reactjs
{{/ui.item}}
{{#ui.item}}
Angularjs
{{/ui.item}}
</div>
<button onclick={{controls.previous}}>
Slide Left
</button>
<button onclick={{controls.next}}>
Slide Right
</button>
{{/carousel-container}}
{{carousel-container}}
This is the primary component to start displaying carousel items.
transitionInterval
- Defaults to 500
.onSlide
- Optional, an action that receives one parameter, an object like { index: 3, previousIndex: 2, direction: 'right' }
.This component yields two hashes, e.g. {{#carousel-container as |ui act|}}
.
These parameters ui
and act
can be called anything, but they contain the following items:
ui
- is a hash with the following component items:
item
- A component that should contain your slide contents, used like so {{ui.item}}you content{{/ui.item}}
.controls
- is a hash with the following action items:
previous
- A closure action that changes to the previous slide.next
- A closure action that changes to the next slide.git clone
this repositorynpm install
bower install
ember server
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
An Ember Carousel component
We found that ember-carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.