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¶
Name | Type |
---|---|
event | string |
Returns¶
void
Defined in¶
packages/core/src/events.ts:100
off¶
▸ off(event
, cb
): void
Parameters¶
Name | Type |
---|---|
event | ThebeEventType |
cb | ThebeEventCb |
Returns¶
void
Defined in¶
packages/core/src/events.ts:124
on¶
▸ on(event
, cb
): () => void
Parameters¶
Name | Type |
---|---|
event | ThebeEventType |
cb | ThebeEventCb |
Returns¶
fn
▸ (): void
Returns¶
void
Defined in¶
packages/core/src/events.ts:112
one¶
▸ one(event
, cb
): () => void
Parameters¶
Name | Type |
---|---|
event | ThebeEventType |
cb | ThebeEventCb |
Returns¶
fn
▸ (): void
Returns¶
void
Defined in¶
packages/core/src/events.ts:118
trigger¶
▸ trigger(event
, evt
): void
Parameters¶
Name | Type |
---|---|
event | ThebeEventType |
evt | ThebeEventData |
Returns¶
void