ensureWrapped
Ensures that the element is wrapped in a setting component wrapper.
Import:
import { ensureWrapped } from 'obsidian-dev-utils/obsidian/setting-components/setting-component-wrapper';Signature:
function ensureWrapped(el: HTMLElement): HTMLDivElementParameters:
| Parameter | Type | Description |
|---|---|---|
el | HTMLElement | The element to ensure is wrapped. |
Returns: HTMLDivElement — The wrapper element.