PluginSettingsTabBase.setControlValue method
PluginSettingsTabBase › setControlValue
Persists the value of a nativecontrol setting definition.The counterpart of
getControlValue: it routes the write to the settings component instead of the inherited plugin.saveData path, so validation, transformers and the debounced save all apply as they do for a bind-ed component.Signature:
setControlValue(key: string, value: unknown): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | string | The settings property name. |
| value | unknown | The value to persist. |
Returns: Promise<void> — A Promise that resolves when the value is set.