Skip to main content

Interface: ComponentStateEvent

component.ComponentStateEvent

Interface for component state events.

example

// The `hover` event is an example of a `ComponentStateEvent`.// Set up an event listener on the direction component.var directionComponent = viewer.getComponent('direction');directionComponent.on('hover', function(e) {  console.log('A hover event has occured');});

Hierarchy#

Properties#

target#

• target: IComponent

The component object that fired the event.

Inherited from#

ComponentEvent.target

Defined in#

component/events/ComponentEvent.ts:11


type#

• type: "tagcreateend" | "tagcreatestart" | "tags"

The event type.

Overrides#

ComponentEvent.type

Defined in#

component/events/ComponentStateEvent.ts:22