🔗 Function: fromDOM()
fromDOM<
T,C,S>(extractors,fallback):Extractor<T,C>
Defined in: src/core/dom.ts:186
Get a value from elements in the DOM
🔗 Type Parameters
🔗 T
T extends object
🔗 C
C extends HTMLElement = HTMLElement
🔗 S
S extends { [K in string]: LooseExtractor<string | T, ElementFromSelector<K>> } = { }
🔗 Parameters
🔗 extractors
S
An object of extractor functions for selectors as keys to get a value from
🔗 fallback
ParserOrFallback<T, C>
Fallback value or parser function
🔗 Returns
Extractor<T, C>
Loose extractor function to apply to the host element
🔗 Since
0.14.0