Skip to content

Commit

Permalink
refactor(slides): update slide methods and API docs
Browse files Browse the repository at this point in the history
add to docs including how to use the slides and rename methods.

BREAKING CHANGE:

The Slides component has been refactored. Many methods and events were
renamed.

The following events have been renamed:

- `slideChangeStart` has been renamed `willChange`
- `change` has been renamed `didChange`

The following methods have been renamed:

`next()` has been renamed to `slideNext()`
`prev()` has been renamed to `slidePrev()`
`getIndex()` has been renamed to `getActiveIndex()`
`getNumSlides()` has been renamed to `length()`
`isAtEnd()` has been renamed to `isEnd()`
`isAtBeginning()` has been renamed to `isBeginning()`
`getSliderWidget()` has been renamed to `getSlider()`

The following method was added: `slideTo()`

All methods have been documented in the API docs:
http://ionicframework.com/docs/v2/api/components/slides/Slides/

references #5508, references ionic-team/ionic-site#458
  • Loading branch information
brandyscarney committed Apr 19, 2016
1 parent 381a650 commit 4654404
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 77 deletions.
5 changes: 0 additions & 5 deletions ionic/components/slides/slides.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
@import "../../globals.core";

ion-swipe-slides {
display: block;
width: 100%;
height: 100%;
}

/**
* Swiper 3.1.2
Expand Down

0 comments on commit 4654404

Please sign in to comment.