Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Draggable

.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.

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.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×