File tree 1 file changed +30
-1
lines changed
1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 1
- var GESTURE_DIRECTIVES = 'onHold onTap onDoubleTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft' . split ( ' ' ) ;
1
+ var GESTURE_DIRECTIVES = 'onHold onTap onDoubleTap onTouch onRelease onDragStart onDrag onDragEnd onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft' . split ( ' ' ) ;
2
2
3
3
GESTURE_DIRECTIVES . forEach ( function ( name ) {
4
4
IonicModule . directive ( name , gestureDirective ( name ) ) ;
@@ -86,6 +86,21 @@ GESTURE_DIRECTIVES.forEach(function(name) {
86
86
* ```
87
87
*/
88
88
89
+ /**
90
+ * @ngdoc directive
91
+ * @name onDragStart
92
+ * @module ionic
93
+ * @restrict A
94
+ *
95
+ * @description
96
+ * Called when a drag gesture has started.
97
+ *
98
+ * @usage
99
+ * ```html
100
+ * <button on-drag-start="onDragStart()" class="button">Test</button>
101
+ * ```
102
+ */
103
+
89
104
90
105
/**
91
106
* @ngdoc directive
@@ -104,6 +119,20 @@ GESTURE_DIRECTIVES.forEach(function(name) {
104
119
* ```
105
120
*/
106
121
122
+ /**
123
+ * @ngdoc directive
124
+ * @name onDragEnd
125
+ * @module ionic
126
+ * @restrict A
127
+ *
128
+ * @description
129
+ * Called when a drag gesture has ended.
130
+ *
131
+ * @usage
132
+ * ```html
133
+ * <button on-drag-end="onDragEnd()" class="button">Test</button>
134
+ * ```
135
+ */
107
136
108
137
/**
109
138
* @ngdoc directive
You can’t perform that action at this time.
0 commit comments