thebe-core / Exports / ThebeEvents

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ThebeEvents()

Defined in

packages/core/src/events.ts:96

Properties

listeners

listeners: Record<string, Map<ThebeEventCb, { unbind: boolean }>>

Defined in

packages/core/src/events.ts:94

Methods

_ensureMap

_ensureMap(event): void

Parameters

NameType
eventstring

Returns

void

Defined in

packages/core/src/events.ts:100


off

off(event, cb): void

Parameters

NameType
eventThebeEventType
cbThebeEventCb

Returns

void

Defined in

packages/core/src/events.ts:124


on

on(event, cb): () => void

Parameters

NameType
eventThebeEventType
cbThebeEventCb

Returns

fn

▸ (): void

Returns

void

Defined in

packages/core/src/events.ts:112


one

one(event, cb): () => void

Parameters

NameType
eventThebeEventType
cbThebeEventCb

Returns

fn

▸ (): void

Returns

void

Defined in

packages/core/src/events.ts:118


trigger

trigger(event, evt): void

Parameters

NameType
eventThebeEventType
evtThebeEventData

Returns

void

Defined in

packages/core/src/events.ts:104