Skip to main content

Common Properties

All events share two common properties.

type: string

A type of the event.
This value is equal to event's name.

Example
viewer.on("ready", evt => {
console.log(evt.type); // "ready"
});

target: View360

An instance of the component that triggered this event.

Example
viewer.on("ready", evt => {
console.log(evt.target); // = viewer
});