Skip to content

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): HTMLDivElement

Parameters:

ParameterTypeDescription
elHTMLElementThe element to ensure is wrapped.

Returns: HTMLDivElement — The wrapper element.