Sortablejs: add missing callback 'onClone' (#31542)

* Sortablejs: add missing callback

The callback onClone was missing from the typings even though it is part of Sortablejs 1.7

* Added two other missing callbacks

onChoose and onUnchoose were also missing. Funnily enough, onUnchoose is missing also from the official documentation. But it is still a valid callback that should be documented.
This commit is contained in:
Alessandro Mammana
2018-12-20 17:23:52 +01:00
committed by Nathan Shively-Sanders
parent c26b471d67
commit 27bb73f564

View File

@@ -224,6 +224,18 @@ declare namespace Sortable {
* Element is dropped into the list from another list
*/
onAdd?: (event: SortableEvent) => void;
/**
* Created a clone of an element
*/
onClone?: (event: SortableEvent) => void;
/**
* Element is chosen
*/
onChoose?: (event: SortableEvent) => void;
/**
* Element is unchosen
*/
onUnchoose?: (event: SortableEvent) => void;
/**
* Changed sorting within list
*/