Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crhayes/ember-slides
Easy breezy slide decks and multi-steppers in Ember.
https://github.com/crhayes/ember-slides
ember ember-addon multi-stepper slides slideshow
Last synced: about 2 months ago
JSON representation
Easy breezy slide decks and multi-steppers in Ember.
- Host: GitHub
- URL: https://github.com/crhayes/ember-slides
- Owner: crhayes
- License: mit
- Created: 2017-08-26T17:29:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-14T16:05:09.000Z (over 6 years ago)
- Last Synced: 2024-10-02T13:35:02.221Z (3 months ago)
- Topics: ember, ember-addon, multi-stepper, slides, slideshow
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
Ember Slides
==============================================================================[![Build Status](https://travis-ci.org/crhayes/ember-slides.svg?branch=master)](https://travis-ci.org/crhayes/ember-slides)
Signup "wizards", onboarding flows, image carousels... the list goes on. How many times have you created UIs that required multiple, sequential steps? How many times have you had to rewrite the same step logic?
With Ember Slides you'll never have to write that step code again.
Installation
------------------------------------------------------------------------------`ember install ember-slides`
Usage
------------------------------------------------------------------------------**Hardcoded Slides**
```hbs
{{#slide-deck as |d|}}
{{#d.slide}}
Slide 1
{{/d.slide}}
{{#d.slide}}
Slide 2
{{/d.slide}}
{{#d.slide}}
Slide 3
{{/d.slide}}
Prev
Next
{{/slide-deck}}
```**Named Slides**
```hbs
{{#slide-deck as |d|}}
{{#d.slide name="one"}}
Slide 1
{{/d.slide}}
{{#d.slide name="two"}}
Slide 2
{{/d.slide}}
{{#d.slide name="three"}}
Slide 3
{{/d.slide}}First
Second
Third
{{/slide-deck}}
```**Dynamic Slides**
```hbs
{{#slide-deck as |d|}}
{{#each things as |thing|}}
{{#d.slide}}
{{thing}}
{{/d.slide}}
{{/each}}{{#each d.slides as |s|}}
{{s.name}}
{{/each}}
{{/slide-deck}}
```There's more to see, so make sure to check out additional examples in the following files: [`tests/dummy/app/templates/application.hbs`](https://github.com/crhayes/ember-slides/blob/master/tests/dummy/app/templates/application.hbs) and [`tests/integration/components/slide-deck-test.js`](https://github.com/crhayes/ember-slides/blob/master/tests/integration/components/slide-deck-test.js).
Contributing
------------------------------------------------------------------------------### Installation
* `git clone https://github.com/crhayes/ember-slides`
* `cd ember-slides`
* `npm install`### Linting
* `npm run lint:js`
* `npm run lint:js -- --fix`### Running tests
* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions### Running the dummy application
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).