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

The SortableService is a service that manages the drag-and-drop functionality for transferring items between Sortable components.

Definition

Package:@progress/kendo-angular-sortable

Methods

The method that finds the SortableComponent which is registered to the SortableService by using the arguments of the touch event.

Parameters:touchany

A Touch-Object of the Touch type interface. Represents a single contact point (finger or stylus) on a touch-sensitive device (touchscreen or trackpad).

Returns:

{ component: SortableComponent; index: number }

  • An object where the component is the SortableComponent that owns the item and the index is the index of the touched item.

Returns the source SortableComponent from which an item is dragged to other Sortable components.

Returns:

SortableComponent

  • The SourceComponent.

Registers a SortableComponent with the SortableService so that it can be managed by the service.

Parameters:sortableComponentSortableComponent

The SortableComponent.

Returns:

string

  • The unique key that the current SortableComponent gets when registered.

Sets the SortableComponent as a source component. When dragging an item from one Sortable to another, the source component is the one from which the item originates.

Parameters:sortableSortableComponent

The SortableComponent.

Removes a SortableComponent from the registered SortableComponents with which the service operates.

Parameters:keystring

The key of the SortableComponent which will be removed from the register. Obtained when registerComponent is called.

Accessors

Specifies the SortableComponent instance under the currently dragged item.

Properties

activeDraggable

DraggableDirective

Specifies the Draggable item that is currently being moved.

Default:

null

lastDraggable

DraggableDirective

Specifies the Draggable item that last emitted an event.

Default:

null

originDraggable

DraggableDirective

Specifies the Draggable item from which the dragging started.

Default:

null