Value

The Value accessor (class ) lets you attach an attribute holding a value to a prototype. When the value is modified, it is simply stored. When the value is queried, the last value stored is returned.

Parameters

  • No parameters, but the type of the value must be specified since it cannot be deduced.

Example:

The invertedColor attribute in the pump prototype of the samples prototype library stores a color name as a temporary variable.