fix(sliding-item): swipe event

This commit is contained in:
Manu Mtz.-Almeida
2018-09-13 21:07:12 +02:00
parent 428a5da0b5
commit 127da1ac79
4 changed files with 24 additions and 21 deletions

View File

@ -24,11 +24,13 @@ export class ItemOptions {
/**
* Emitted when the item has been fully swiped.
*/
@Event() ionSwipe!: EventEmitter<void>;
@Event() ionSwipe!: EventEmitter<any>;
@Method()
fireSwipeEvent() {
this.ionSwipe.emit();
this.ionSwipe.emit({
side: this.side
});
}
hostData() {