New to Kendo UI for Angular? Start a free 30-day trial
The SortableService is a service that manages the drag-and-drop functionality
for transferring items between Sortable components.
| Name | Type | Default | Description |
|---|
|
|
DraggableDirective
|
|
|
|
DraggableDirective
|
|
|
|
DraggableDirective
|
|
|
|
SortableComponent
|
|
|
|
|---|
|
The method that finds the SortableComponent which is registered to
the SortableService by using the arguments of the touch event.
|
| Parameters | | |
|---|
|
touch
|
any
|
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.
|
|
|
|
|
|---|
|
Registers a SortableComponent with the SortableService so that it can be managed by the service.
|
|
|
| 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.
|
|
|
|
|
|---|
|
Removes a SortableComponent from the registered SortableComponents with which the service operates.
|
| Parameters | | |
|---|
|
key
|
string
|
The key of the SortableComponent which will be removed from the register.
Obtained when registerComponent is called.
|
|