UIElement Docs Version 0.13.3

🔗 Function: fromEvents()

fromEvents<T, E, C, S>(initialize, selector, events): SignalProducer<T, C>

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

Produce a computed signal from transformed event data

🔗 Type Parameters

🔗 T

T extends object

🔗 E

E extends Element = HTMLElement

🔗 C

C extends HTMLElement = HTMLElement

🔗 S

S extends string = string

🔗 Parameters

🔗 initialize

Initial value or initialize function

T | (host) => T

🔗 selector

S

CSS selector for the source element

🔗 events

EventTransformers<T, ElementFromSelector<S, E>, C>

Transformation functions for events

🔗 Returns

SignalProducer<T, C>

Signal producer for value from event

🔗 Since

0.13.3