A DragTracker listens for drag events on an Element and fires events at the start and end of the drag,
-as well as during the drag. This is useful for components such as
A DragTracker listens for drag events on an Element and fires events at the start and end of the drag,
+as well as during the drag. This is useful for components such as
Ext.slider.MultiSlider, where there is
an element that can be dragged around to change the Slider's value.
DragTracker provides a series of template methods that should be overridden to provide functionality
in response to detected drag operations. These are onBeforeStart, onStart, onDrag and onEnd.
-See
Ext.Slider's initEvents function for an example implementation.
Config Options
|
| active : Boolean Defaults to false. | DragTracker |
| autoStart : Boolean/NumberDefaults to false. Specify true to defer trigger start by 1000 ms.
+See Ext.slider.MultiSlider's initEvents function for an example implementation. Config Options|
| active : Boolean Defaults to false. | DragTracker | | autoStart : Boolean/NumberDefaults to false. Specify true to defer trigger start by 1000 ms.
Specify a Number for the number of milliseconds to... Defaults to false. Specify true to defer trigger start by 1000 ms.
Specify a Number for the number of milliseconds to defer trigger start. | DragTracker | | listeners : ObjectA config object containing one or more event handlers to be added to this
object during initialization. This should ... A config object containing one or more event handlers to be added to this
@@ -170,11 +171,11 @@ holds the mouse button down. Return false to disallow the drag Template method which should be overridden by each DragTracker instance. Called whenever a drag has been detected. Template method which should be overridden by each DragTracker instance. Called whenever a drag has been detected. Parameters:e : Ext.EventObjectThe event object Returns: | DragTracker | | onEnd( Ext.EventObject e )
:
voidTemplate method which should be overridden by each DragTracker instance. Called when a drag operation has been comple... Template method which should be overridden by each DragTracker instance. Called when a drag operation has been completed
-(e.g. the user clicked and held the mouse down, dragged the element and then released the mouse button) Parameters:e : Ext.EventObjectThe event object Returns: | DragTracker | | onStart( Array xy )
+(e.g. the user clicked and held the mouse down, dragged the element and then released the mouse button)Parameters:e : Ext.EventObjectThe event object Returns: | DragTracker | | onStart( Ext.EventObject e )
:
voidTemplate method which should be overridden by each DragTracker instance. Called when a drag operation starts
(e.g. th... Template method which should be overridden by each DragTracker instance. Called when a drag operation starts
-(e.g. the user has moved the tracked element beyond the specified tolerance) | DragTracker | | purgeListeners()
+(e.g. the user has moved the tracked element beyond the specified tolerance)Parameters:e : Ext.EventObjectThe event object Returns: | DragTracker | | purgeListeners()
:
voidRemoves all listeners for this object Removes all listeners for this object | Observable | | relayEvents( Object o , Array events )
:
@@ -196,8 +197,8 @@ after the Listeners will be called with the following arguments:this : Objecte : Objectevent object
| DragTracker | | dragend :
( Object this , Object e )
Listeners will be called with the following arguments:this : Objecte : Objectevent object
| DragTracker | | dragstart :
- ( Object this , Object startXY )
- Listeners will be called with the following arguments: | DragTracker | | mousedown :
+ ( Object this , Object e )
+ Listeners will be called with the following arguments:this : Objecte : Objectevent object
| DragTracker | | mousedown :
( Object this , Object e )
Listeners will be called with the following arguments:this : Objecte : Objectevent object
| DragTracker | | mousemove :
( Object this , Object e )
|
|