New to Kendo UI for AngularStart a free 30-day trial

Represents the Kendo UI DragTargetContainer directive for Angular. Use this directive to make multiple elements draggable inside a container.

Definition

Package:@progress/kendo-angular-utils

Selector:[kendoDragTargetContainer]

Export Name:Accessible in templates as #kendoDragTargetContainerInstance="kendoDragTargetContainer"

Syntax:

html
<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>

Inputs

Sets the cursor style of the drag targets. Accepts same values as the CSS cursor property.

Default:

'move'

Sets a callback function to return custom data for DropTarget events. It exposes the current DragTarget HTML element, its dragTargetId, and its index in the collection of drag targets as arguments.

dragDelay

number

Sets the delay in milliseconds before dragging begins. See example.

Default:

0

Disables dragging of drag targets in the container when set to true.

Default:

false

Sets a selector for elements inside each drag target to use as drag handles.

Sets a selector for elements in the container to make them draggable. The possible values include any DOM selector. See example.

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.

Defines whether a hint will be used for dragging. By default, the hint is a copy of the current drag target. See example.

Default:

false

Sets whether to use the default dragging behavior or handle it manually.

Default:

'auto'

threshold

number

Sets the number of pixels the pointer must move before dragging starts. See example.

Default:

0

Events

Fires while the user drags a drag target element.

Fires when dragging of a drag target ends and the element is released.

Fires when a drag target's dragDelay has passed and the user can drag the element.

Fires when dragging of a drag target element begins.

Fires when the user presses a drag target element.

Fires when the user releases a drag target element after pressing it.

Methods

Notifies the DragTargetContainer that its content has changed.