Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

travelbank/ember-flickity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

530025b · Dec 12, 2016

History

14 Commits
Dec 12, 2016
Aug 6, 2016
Aug 6, 2016
Aug 6, 2016
Dec 12, 2016
Aug 6, 2016
Aug 6, 2016
Aug 6, 2016
Aug 6, 2016
Aug 10, 2016
Aug 10, 2016
Aug 6, 2016
Aug 6, 2016
Aug 6, 2016
Aug 6, 2016
Dec 12, 2016
Aug 6, 2016
Aug 6, 2016
Dec 12, 2016
Aug 10, 2016
Aug 10, 2016
Dec 12, 2016
Dec 12, 2016
Aug 6, 2016

Repository files navigation

Ember-flickity

An Ember addon for flickity

Installation

ember install ember-flickity

Usage

{{#em-flickity class="my-slideshow" showSlides=(gt items.length 1)}}
  {{#each items as |item|}}
    <div class="my-slideshow__item"></div>
  {{/each}}
{{/em-flickity}}

showSlides is a Boolean. This allows you to enable or disable flickity based on the number of items you have in the list.

Flickity options and events

All options and events are supported.

{{#em-flickity pageDots=true draggable=true showSlides=(gt numItems 1) settle=(action 'mySettle')}}

{{/em-flickity}}