From 27bb73f564b0730dbf1107f7df8bc74ff08cf9d4 Mon Sep 17 00:00:00 2001 From: Alessandro Mammana Date: Thu, 20 Dec 2018 17:23:52 +0100 Subject: [PATCH] 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. --- types/sortablejs/index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/types/sortablejs/index.d.ts b/types/sortablejs/index.d.ts index b05ddb053b..6a3b232016 100644 --- a/types/sortablejs/index.d.ts +++ b/types/sortablejs/index.d.ts @@ -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 */