Skip to content

ensureWrapped

Ensures that the element is wrapped in a setting component wrapper.

Import:

import { ensureWrapped } from '@mnaoumov/obsidian-lib/setting-components/setting-component-wrapper';

Signature:

function ensureWrapped(element: HTMLElement): HTMLDivElement

Parameters:

Parameter Type Description
element HTMLElement The element to ensure is wrapped.

Returns: HTMLDivElement — The wrapper element.