Skip to content

Commit

Permalink
docs(ionic.EventController.onGesture): list available eventTypes
Browse files Browse the repository at this point in the history
Closes #896
  • Loading branch information
ajoslin committed Mar 27, 2014
1 parent 3938500 commit 4b5db0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/utils/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@
* @name ionic.EventController#onGesture
* @alias ionic.onGesture
* @description Add an event listener for a gesture on an element.
*
* Available eventTypes (from [hammer.js](http://eightmedia.github.io/hammer.js/)):
*
* `hold`, `tap`, `doubletap`, `drag`, `dragstart`, `dragend`, `dragup`, `dragdown`, <br/>
* `dragleft`, `dragright`, `swipe`, `swipeup`, `swipedown`, `swipeleft`, `swiperight`, <br/>
* `transform`, `transformstart`, `transformend`, `rotate`, `pinch`, `pinchin`, `pinchout`, </br>
* `touch`, `release`
*
* @param {string} eventType The gesture event to listen for.
* @param {function(e)} callback The function to call when the gesture
* happens.
Expand Down

0 comments on commit 4b5db0d

Please sign in to comment.