Skip to main content

LoadStartEvent

Since version 4.0.0

An event that fires before loading the content.

interface LoadStartEvent

Properties

Source URL / HTMLElement to load

An instance of the component that triggered this event.

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

Source's video option

Properties

src

>=4.0.0
src

string | HTMLElement | (string | HTMLElement)[]

Source URL / HTMLElement to load

target

>=4.0.0
target

View360

An instance of the component that triggered this event.

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

type

>=4.0.0
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"
});

video

>=4.0.0
video

undefined | boolean | Partial<VideoConfig>

Source's video option