SortableService
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.
A Touch-Object of the Touch type interface.
Represents a single contact point (finger or stylus)
on a touch-sensitive device (touchscreen or trackpad).
{ component: SortableComponent; index: number }
- An object where the component is the
SortableComponentthat 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.
- The
SourceComponent.
Registers a SortableComponent with the SortableService so that it can be managed by the service.
The SortableComponent.
string
- The unique key that the current
SortableComponentgets 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.
The SortableComponent.
Removes a SortableComponent from the registered SortableComponents with which the service operates.
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.
null
lastDraggable
DraggableDirective
Specifies the Draggable item that last emitted an event.
null
originDraggable
DraggableDirective
Specifies the Draggable item from which the dragging started.
null