Type “EventObject”

Base class for all events fired by the framework. Instances may include additional properties, which are documented together with the event type. Change events also have a value property.

When the trigger method is called with a new instance of EventObject, type, target and timeStamp are initialized automatically.

In TypeScript this is a generic class, with the parameter T defining the type of the target property.

You can import this type like this:

import {EventObject} from 'tabris';

Or reference it directly form anywhere as “tabris.EventObject”.

Properties

target

read-only
Type: object

The object that fired the event.

timeStamp

read-only
Type: number

The time at which the event was created, in milliseconds.

type

read-only
Type: string

The event type.