New to Kendo UI for Angular? Start a free 30-day trial
The service that provides the drag-and-drop functionality for
transferring items between Sortable components within the same page.
Name | Type | Default | Description |
---|
|
DraggableDirective
|
|
|
DraggableDirective
|
|
|
DraggableDirective
|
|
|
SortableComponent
|
|
(ngZone: NgZone)
NgZone
|
---|
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; }
|
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 which the service operates.
|
|
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.
|
|