Type Definitions

DraggableAPI

Type:
  • Object
Properties
NameTypeDescription
xfunction

Change the "x" value in the draggable's options

yfunction

Change the "y" value in the draggable's options

constrainfunction

Change the "constrain" value in the draggable's options

stopfunction

Stop the component from being draggable

DraggableOptions

Type:
  • Object
Properties
NameTypeAttributesDefaultDescription
xBoolean<optional>
true

Can move along vertical axis

yBoolean<optional>
true

Can move along horizontal axis

constrainVector<optional>

Relative limit of freedom