mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
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:
committed by
Nathan Shively-Sanders
parent
c26b471d67
commit
27bb73f564
12
types/sortablejs/index.d.ts
vendored
12
types/sortablejs/index.d.ts
vendored
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user