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↳
ComponentStateEvent
#
Properties#
target• target: IComponent
The component object that fired the event.
#
Inherited from#
Defined incomponent/events/ComponentEvent.ts:11
#
type• type: "tagcreateend"
| "tagcreatestart"
| "tags"
The event type.