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

Commit

Permalink
Added support for the new breakpoint event
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Dec 1, 2017
1 parent 13b0d51 commit 41a0a3c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/swiper.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div #swiper class="s-wrapper" [class.swiper]="useSwiperClass" [class.swiper-container]="useSwiperClass" [swiper]="getConfig()" [index]="index" [disabled]="disabled" (indexChange)="indexChange.emit($event)" (init)="S_INIT.emit($event)" (beforeDestroy)="S_BEFOREDESTROY.emit($event)" (scroll)="S_SCROLL.emit($event)" (progress)="S_PROGRESS.emit($event)" (resize)="S_RESIZE.emit($event)" (beforeResize)="S_BEFORERESIZE.emit($event)" (keyPress)="S_KEYPRESS.emit($event)" (sliderMove)="S_SLIDERMOVE.emit($event)" (slideChange)="S_SLIDECHANGE.emit($event)" (setTranslate)="S_SETTRANSLATE.emit($event)" (setTransition)="S_SETTRANSITION.emit($event)" (fromEdge)="S_FROMEDGE.emit($event)" (reachEnd)="S_REACHEND.emit($event)" (reachBeginning)="S_REACHBEGINNING.emit($event)" (autoplay)="S_AUTOPLAY.emit($event)" (autoplayStop)="S_AUTOPLAYSTOP.emit($event)" (autoplayStart)="S_AUTOPLAYSTART.emit($event)" (imagesReady)="S_IMAGESREADY.emit($event)" (lazyImageLoad)="S_LAZYIMAGELOAD.emit($event)" (lazyImageReady)="S_LAZYIMAGEREADY.emit($event)" (scrollDragEnd)="S_SCROLLDRAGEND.emit($event)" (scrollDragMove)="S_SCROLLDRAGMOVE.emit($event)" (scrollDragStart)="S_SCROLLDRAGSTART.emit($event)" (swiperTap)="S_TAP.emit($event)" (swiperClick)="S_CLICK.emit($event)" (swiperDoubleTap)="S_DOUBLETAP.emit($event)" (swiperTouchEnd)="S_TOUCHEND.emit($event)" (swiperTouchMove)="S_TOUCHMOVE.emit($event)" (swiperTouchStart)="S_TOUCHSTART.emit($event)" (swiperTouchMoveOpposite)="S_TOUCHMOVEOPPOSITE.emit($event)" (swiperTransitionEnd)="S_TRANSITIONEND.emit($event)" (swiperTransitionStart)="S_TRANSITIONSTART.emit($event)" (slidePrevEnd)="S_SLIDEPREVTRANSITIONEND.emit($event)" (slidePrevStart)="S_SLIDEPREVTRANSITIONSTART.emit($event)" (slideNextEnd)="S_SLIDENEXTTRANSITIONEND.emit($event)" (slideNextStart)="S_SLIDENEXTTRANSITIONSTART.emit($event)" (slideChangeEnd)="S_SLIDECHANGETRANSITIONEND.emit($event)">
<div #swiper class="s-wrapper" [class.swiper]="useSwiperClass" [class.swiper-container]="useSwiperClass" [swiper]="getConfig()" [index]="index" [disabled]="disabled" (indexChange)="indexChange.emit($event)" (init)="S_INIT.emit($event)" (beforeDestroy)="S_BEFOREDESTROY.emit($event)" (scroll)="S_SCROLL.emit($event)" (progress)="S_PROGRESS.emit($event)" (resize)="S_RESIZE.emit($event)" (breakpoint)="S_BREAKPOINT.emit($event)" (beforeResize)="S_BEFORERESIZE.emit($event)" (keyPress)="S_KEYPRESS.emit($event)" (sliderMove)="S_SLIDERMOVE.emit($event)" (slideChange)="S_SLIDECHANGE.emit($event)" (setTranslate)="S_SETTRANSLATE.emit($event)" (setTransition)="S_SETTRANSITION.emit($event)" (fromEdge)="S_FROMEDGE.emit($event)" (reachEnd)="S_REACHEND.emit($event)" (reachBeginning)="S_REACHBEGINNING.emit($event)" (autoplay)="S_AUTOPLAY.emit($event)" (autoplayStop)="S_AUTOPLAYSTOP.emit($event)" (autoplayStart)="S_AUTOPLAYSTART.emit($event)" (imagesReady)="S_IMAGESREADY.emit($event)" (lazyImageLoad)="S_LAZYIMAGELOAD.emit($event)" (lazyImageReady)="S_LAZYIMAGEREADY.emit($event)" (scrollDragEnd)="S_SCROLLDRAGEND.emit($event)" (scrollDragMove)="S_SCROLLDRAGMOVE.emit($event)" (scrollDragStart)="S_SCROLLDRAGSTART.emit($event)" (swiperTap)="S_TAP.emit($event)" (swiperClick)="S_CLICK.emit($event)" (swiperDoubleTap)="S_DOUBLETAP.emit($event)" (swiperTouchEnd)="S_TOUCHEND.emit($event)" (swiperTouchMove)="S_TOUCHMOVE.emit($event)" (swiperTouchStart)="S_TOUCHSTART.emit($event)" (swiperTouchMoveOpposite)="S_TOUCHMOVEOPPOSITE.emit($event)" (swiperTransitionEnd)="S_TRANSITIONEND.emit($event)" (swiperTransitionStart)="S_TRANSITIONSTART.emit($event)" (slidePrevEnd)="S_SLIDEPREVTRANSITIONEND.emit($event)" (slidePrevStart)="S_SLIDEPREVTRANSITIONSTART.emit($event)" (slideNextEnd)="S_SLIDENEXTTRANSITIONEND.emit($event)" (slideNextStart)="S_SLIDENEXTTRANSITIONSTART.emit($event)" (slideChangeEnd)="S_SLIDECHANGETRANSITIONEND.emit($event)">
<div #swiperSlides class="swiper-wrapper">
<ng-content></ng-content>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/lib/swiper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class SwiperComponent implements OnInit, OnDestroy {
@Output('progress' ) S_PROGRESS = new EventEmitter<any>();

@Output('resize' ) S_RESIZE = new EventEmitter<any>();
@Output('breakpoint' ) S_BREAKPOINT = new EventEmitter<any>();
@Output('beforeResize' ) S_BEFORERESIZE = new EventEmitter<any>();

@Output('keyPress' ) S_KEYPRESS = new EventEmitter<any>();
Expand Down
1 change: 1 addition & 0 deletions src/lib/swiper.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class SwiperDirective implements OnInit, DoCheck, OnDestroy, OnChanges {
@Output('progress' ) S_PROGRESS = new EventEmitter<any>();

@Output('resize' ) S_RESIZE = new EventEmitter<any>();
@Output('breakpoint' ) S_BREAKPOINT = new EventEmitter<any>();
@Output('beforeResize' ) S_BEFORERESIZE = new EventEmitter<any>();

@Output('keyPress' ) S_KEYPRESS = new EventEmitter<any>();
Expand Down
1 change: 1 addition & 0 deletions src/lib/swiper.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const SwiperEvents = [
'progress',

'resize',
'breakpoint',
'beforeResize',

'keyPress',
Expand Down

0 comments on commit 41a0a3c

Please sign in to comment.