Resolve an element from a direct element, a selector, an optionally
unwrapped value, or a component-like object containing an $el element.
Selector queries are scoped to the supplied root. Invalid selectors,
unmatched selectors, null, and unsupported values return null.
Query root, optional default element, and optional unwrap adapter.
Returns Element|null
The resolved element, or null when the target cannot be resolved.
Remarks
Browser only unless compatible DOM objects are supplied. The
function does not query or mutate the DOM when given a direct element.
defaultElement is used only when target is undefined; an explicit
null target resolves to null.
Resolve an element from a direct element, a selector, an optionally unwrapped value, or a component-like object containing an
$elelement. Selector queries are scoped to the supplied root. Invalid selectors, unmatched selectors,null, and unsupported values returnnull.Usage:
Output:
Ref-like values can be supported without coupling Mazey to a framework: