Skip to content

PropertyWidget<ComponentType>

Unofficial

Property widget.

Import:

import type { PropertyWidget } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface PropertyWidget<ComponentType extends PropertyWidgetComponentBase = PropertyWidgetComponentBase>

Properties

PropertyTypeDescription
iconstringLucide-dev icon associated with the widget.
reservedKeys?string[]Reserved keys for the widget.
typestringIdentifier for the widget.

Methods

MethodReturnsDescription
name()stringReturns the I18N name of the widget.
render(containerEl, data, context)ComponentTypeRender function for the widget on field container given context and data.
validate(value)booleanValidate whether the input value to the widget is correct.

Links to this page: