Skip to content

PluginSettingsTabBase.getControlValue method

PluginSettingsTabBase › getControlValue

Reads the value backing a native control setting definition.

Obsidian calls it on every render of a control-type definition. The inherited implementation reads plugin.settings, which a plugin built on PluginSettingsComponentBase never populates, so it is routed to the settings component instead.

Signature:

getControlValue(key: string): unknown

Parameters:

ParameterTypeDescription
keystringThe settings property name.

Returns: unknownThe current value.