API Docs for:
Show:

EventDescriptor Class

Describes an event which can be used in combinations with bindings and animation to only execute them if the specified event happens.

In most cases, the event-descriptor is just a single string and not an object. The following events are supported:

  • onInitialize - Only fired once after the control has been initialized
  • onAlways - This event is just fired every frame.
  • onMouseHover - Only fired as long as the mouse-pointer is over the control's area.
  • onMouseLeave - Only fired once after the mouse-pointer leaved the control's area
  • onMouseEnter - Only fired once after the mouse-pointer entered the control's area
  • onMouseDown - Only fired if the mouse-pointer is over the control's area and the left mouse-button is down.
  • onChange - This event is defined as an object and not just as a plain string. Only fired if the specified field is changed.

Example 1: Define an even as string

{ .... "event": "onMouseHover" ....}

Example 2: Define an on-change event

{ .... "event": { "onChange": "o.text" } .... }

Item Index

Properties

Properties

onChange

String

A binding-expression to define a field which needs to be changed to fire the onChange event.