UIElement Docs Version 0.13.1

🔗 Function: emit()

emit<T>(type, detail): <P>(host, target) => void

Defined in: src/core/dom.ts:439

Emit a custom event with the given detail

🔗 Type Parameters

🔗 T

T

🔗 Parameters

🔗 type

string

event type to emit

🔗 detail

event detail or provider function

T | (element) => T

🔗 Returns

<P>(host, target): void

🔗 Type Parameters

🔗 P

P extends ComponentProps

🔗 Parameters

🔗 host

Component<P>

🔗 target

Element = host

🔗 Returns

void

🔗 Since

0.12.0