Profectus / game/boards/board / makeDraggable
Function: makeDraggable() ​
makeDraggable<
T
,S
>(element
,optionsFunc
):asserts element is VueFeature & { draggable: Draggable<T> }
Makes a vue feature draggable on a Board.
Type Parameters ​
• T
• S extends MakeDraggableOptions
<T
>
Parameters ​
element ​
The vue feature to make draggable.
optionsFunc ​
() => S
The options to configure the dragging behavior.
Returns ​
asserts element is VueFeature & { draggable: Draggable<T> }