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