waitUntilConnected
Waits until the given element is connected to the DOM.
Import:
import { waitUntilConnected } from '@mnaoumov/typescript-lib/html-element';Signature:
function waitUntilConnected(element: HTMLElement): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
element |
HTMLElement | The element to check. |
Returns: Promise<void> — A promise that resolves when the element is connected.