Home Reference Source
import {SourceEvent} from './vgui/15-source-event.js'
public class | source

SourceEvent

Extends:

Event → SourceEvent

Base event for Source Engine events

Constructor Summary

Public Constructor
public

constructor(type: *, data: {})

Member Summary

Public Members
public get

Wether this event should be thrown back to the source engine after passing through here

public

data: *

public get

Inherited Summary

From class Event
public get

bubbles: *

Wether this event should bubble up the DOM tree

public get

Wether preventDefault can be called to stop the default action

public get

target: *

The element where the Event originated

public get

The type of the event

public

Prevents the default action from happening.

public

Stops the event from bubbling up.

protected

Public Constructors

public constructor(type: *, data: {}) source

Override:

Event#constructor

Params:

NameTypeAttributeDescription
type *
data {}
  • optional
  • default: {}

Public Members

public get canEscape: boolean source

Wether this event should be thrown back to the source engine after passing through here

public data: * source

public get type: string source

Override:

Event#type