Skip to content

EnableAction

MikhailTymchukDX edited this page Apr 12, 2017 · 2 revisions

EnableAction (inherits Action)

The EnableAction changes whether or not the target is disabled.

Client properties

Name Description
enabled Whether or not the target is disabled. The default value is true.

Client methods

Name Description
constructor(target, duration, fps, enabled)
doAction() Sets the enabled property of the target.

Client properties

enabled

Whether or not the target is disabled. The default value is true.

Getter name: get_enabled()
Setter name: set_enabled(value)

Client methods

constructor(target, duration, fps, enabled)

Params:

  • target

    • Type: Object
    • Description: Target of the animation.
  • duration

    • Type: Number
    • Description: Length of the animation in seconds. The default is 1.
  • fps

    • Type: Number
    • Description: Number of steps per second. The default is 25.
  • enabled

    • Type: Boolean
    • Description: Whether or not the target is disabled. The default value is true.

doAction()

Sets the enabled property of the target.

Clone this wiki locally