DragTargetContainerDirective
Represents the Kendo UI DragTargetContainer directive for Angular. Use this directive to make multiple elements draggable inside a container.
<ul kendoDragTargetContainer dragTargetFilter=".my-draggable">
<li class="my-draggable"> Item 1</li>
<li class="my-draggable"> Item 2</li>
<li class="my-draggable"> Item 3</li>
</ul>
Selector
[kendoDragTargetContainer]
Export Name
Accessible in templates as #kendoDragTargetContainerInstance="kendoDragTargetContainer"
Inputs
Name | Type | Default | Description |
---|---|---|---|
cursorStyle |
|
|
Sets the cursor style of the drag targets. Accepts same values as the CSS |
dragData |
|
Sets a callback function to return custom data for | |
dragDelay |
|
|
Sets the delay in milliseconds before dragging begins. See example. |
dragDisabled |
|
|
Disables dragging of drag targets in the container when set to |
dragHandle |
|
Sets a selector for elements inside each drag target to use as drag handles. | |
dragTargetFilter |
|
Sets a selector for elements in the container to make them draggable. The possible values include any
DOM | |
dragTargetId |
|
Sets a unique identifier for each drag target. It exposes the current drag target HTML element and its index in the collection of drag targets as arguments. | |
hint |
|
|
Defines whether a hint will be used for dragging. By default, the hint is a copy of the current drag target. See example. |
mode |
|
|
Sets whether to use the default dragging behavior or handle it manually. |
threshold |
|
|
Sets the number of pixels the pointer must move before dragging starts. See example. |
Events
Name | Type | Description |
---|---|---|
onDrag |
|
Fires while the user drags a drag target element. |
onDragEnd |
|
Fires when dragging of a drag target ends and the element is released. |
onDragReady |
|
Fires when a drag target's |
onDragStart |
|
Fires when dragging of a drag target element begins. |
onPress |
|
Fires when the user presses a drag target element. |
onRelease |
|
Fires when the user releases a drag target element after pressing it. |
Methods
notify |
---|
Notifies the |