ionic-swipe-all
Allow Ionic to recognize both horizontal and vertical swipe gesture.
Last updated 8 months ago by diogoqueiros .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ionic-swipe-all 
SYNC missed versions from official npm registry.

Ionic Swipe All

Ionic Swipe All allow Ionic to recognize both horizontal and vertical swipe gesture.

Requirements

  • Angular: 7+

Installation

npm install --save ionic-swipe-all

For previous versions of Angular, please use v1.3.0:

npm install --save ionic-swipe-all@1.3.0
import { IonicSwipeAllModule } from 'ionic-swipe-all';

@NgModule({
  imports: [IonicSwipeAllModule],
})
export class AppModule {
}

Usage

With this module you can use (swipeup) and (swipedown) events. In the (swipe) event vertical gestures are detected. Just add the swipeAll property to the element you want to swipe and use the events as needed. The (swipeleft) and (swiperight) events are available too.

@Component({
    template: `
      <div swipeAll
           (swipe)="swipeAll($event)"
           (swipeleft)="swipeLeft($event)"
           (swiperight)="swipeRight($event)"
           (swipeup)="swipeUp($event)"
           (swipedown)="swipeDown($event)"
      ></div>
    `,
})
export class AppComponent {

    swipeAll(event: any): any {
        console.log('Swipe All', event);
    }

    swipeLeft(event: any): any {
        console.log('Swipe Left', event);
    }

    swipeRight(event: any): any {
        console.log('Swipe Right', event);
    }

    swipeUp(event: any): any {
        console.log('Swipe Up', event);
    }

    swipeDown(event: any): any {
        console.log('Swipe Down', event);
    }

}

Current Tags

  • 2.0.0                                ...           latest (8 months ago)

14 Versions

  • 2.0.0                                ...           8 months ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.1.0-rc2                                ...           2 years ago
  • 1.1.0-rc1                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.1-b6                                ...           3 years ago
  • 1.0.1-b5                                ...           3 years ago
  • 1.0.1-b4                                ...           3 years ago
  • 1.0.1-b3                                ...           3 years ago
  • 1.0.1-b2                                ...           3 years ago
  • 1.0.1-b1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 2
Last Month 11
Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |