Skip to main content

enabled

enabled( value:Boolean ) : Boolean

Gets or sets the enabled state.

Parameters

  • value: Boolean

    Omitting the parameter returns the current value (getter), whereas defining the parameter sets the value (setter) and returns the instance itself for easier chaining.

Returns : Boolean​

Returns true if the Draggable instance is able to be dragged (false if not).

Details​

Gets or sets the enabled state. Omitting the value parameter returns the current enabled value (getter), whereas defining the parameter sets the enabled value (setter). When a Draggable instance is enabled it responds to mouse events, fires callbacks and can be dragged.