🔗 Function: emitEvent()
emitEvent<
T,P,E>(type,reactive):Effect<P,E>
Defined in: src/core/events.ts:196
Effect for emitting custom events with reactive detail values.
Creates and dispatches CustomEvent instances with bubbling enabled by default.
🔗 Type Parameters
🔗 T
T
🔗 P
P extends ComponentProps
🔗 E
E extends Element = HTMLElement
🔗 Parameters
🔗 type
string
Event type to emit
🔗 reactive
Reactive<T, P, E>
Reactive value bound to the event detail
🔗 Returns
Effect<P, E>
Effect function that emits custom events
🔗 Since
0.13.3