Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit 1fbb6d1

Browse files
committed
Merge branch 'master' of github.com:Suven/ember-cli-swiper
2 parents 8e5d8cd + 2d34676 commit 1fbb6d1

8 files changed

Lines changed: 291 additions & 211 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ matrix:
2828
fast_finish: true
2929
allow_failures:
3030
- env: EMBER_TRY_SCENARIO=ember-canary
31+
- env: EMBER_TRY_SCENARIO=ember-lts-2.12
3132

3233
before_install:
3334
- curl -o- -L https://yarnpkg.com/install.sh | bash

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,28 @@ Make sure you are using a somewhat recent version of nodejs when installing. Eve
2222
{{/swiper-container}}
2323
```
2424

25-
For all supported options see the [demo](http://suven.github.io/ember-cli-swiper/).
25+
## Options
26+
27+
All [available Swiper options](http://idangero.us/swiper/api) are supported and can be configured two ways:
28+
29+
As top level attributes:
30+
```handlebars
31+
{{swiper-container freeMode=true}}
32+
```
33+
34+
As a hash of options:
35+
```handlebars
36+
{{!--
37+
// In controller
38+
Controller.extend({
39+
myOptions: { parallax: true }
40+
});
41+
--}}
42+
43+
{{swiper-container options=myOptions}}
44+
```
45+
46+
Please note that attribute values will overwrite any conflicting options.
2647

2748
## Running tests
2849

0 commit comments

Comments
 (0)