@tempots/dom
DOMContext.of() method
Creates a new DOMContext
instance for the given Element
and optional reference Node
.
Signature:
static of(element: Element, ref?: Node | undefined): DOMContext;
Parameters
Parameter |
Type |
Description |
---|---|---|
element |
Element |
The |
ref |
Node | undefined |
(Optional) An optional reference |
Returns: DOMContext
A new DOMContext
instance.