Skip to content

PluginSettingsComponentBase.setLibraryRecordValue method

PluginSettingsComponentBase › setLibraryRecordValue

Writes one entry of the record this library keeps in data.json beside the plugin's own settings, and saves the file. undefined deletes the entry.

A component with no settings properties (the placeholder PluginBase adds before the plugin's own) keeps the entry in memory only, because its save would write nothing but this record over the plugin's settings.

Signature:

setLibraryRecordValue(key: string, value: unknown): Promise<void>

Parameters:

ParameterTypeDescription
keystringThe entry key.
valueunknownThe value, a plain JSON value, or undefined to delete the entry.

Returns: Promise<void> — A Promise that resolves when the file is saved.