Skip to content

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 ​

VueFeature

The vue feature to make draggable.

optionsFunc ​

() => S

The options to configure the dragging behavior.

Returns ​

asserts element is VueFeature & { draggable: Draggable<T> }

Defined in ​

profectus/src/game/boards/board.tsx:271