Skip to content

TextBasedComponent<T>

A component based on a text input.

Import:

import type { TextBasedComponent } from 'obsidian-dev-utils/obsidian/setting-components/text-based-component';

Signature:

export interface TextBasedComponent<T>

Methods

MethodReturnsDescription
empty()voidEmpties the component.
isEmpty()booleanChecks if the component is empty.
setPlaceholderValue(placeholderValue)thisSets the placeholder value of the component.

Links to this page: