Function draggable
- draggable(node, options): ActionReturn<Partial<DraggableOptions>>
Parameters
- node: HTMLElement
The node associated with the action.
- options: DraggableOptions
Draggable action options.
Returns ActionReturn<Partial<DraggableOptions>>
Action lifecycle functions.
- node: HTMLElement
Provides an action to enable pointer dragging of an HTMLElement and invoke
position.set
on a given TJSPosition instance provided. When the attached boolean store state changes the draggable action is enabled or disabled.