DragTargetDirective
Represents the Kendo UI DragTarget directive for Angular. Use this directive to make an element draggable.
Selector
[kendoDragTarget]
Export Name
Accessible in templates as #kendoDragTargetInstance="kendoDragTarget"
Inputs
Name | Type | Default | Description |
---|---|---|---|
autoScroll |
|
|
Sets the automatic container scrolling behavior when close to the edge. See example. |
cursorStyle |
|
|
Sets the cursor style of the drag target. Accepts same values as the CSS |
dragData |
|
Defines a callback function used for attaching custom data to the drag target.
The data is available in the events of the respective | |
dragDelay |
|
|
Sets the delay in milliseconds before dragging begins. See example. |
dragTargetId |
|
Sets a unique identifier for the drag target. | |
hint |
|
|
Defines whether a hint will be used for dragging. By default, the hint is a copy of the drag target. (see example). |
mode |
|
|
Specifies whether to use the default dragging behavior or handle it manually. |
restrictByAxis |
|
Restricts dragging to horizontal or vertical only. Applies when | |
threshold |
|
|
Sets the number of pixels the pointer must move before dragging starts. Applies when |
Events
Name | Type | Description |
---|---|---|
onDrag |
|
Fires while the user drags the drag target element. |
onDragEnd |
|
Fires when dragging of the drag target ends and the element is released. |
onDragReady |
|
Fires when the drag target's |
onDragStart |
|
Fires when dragging of the drag target element begins. |
onPress |
|
Fires when the user presses the drag target element. |
onRelease |
|
Fires when |