PluginSettingsComponentBase.setLibraryRecordValue method
PluginSettingsComponentBase › setLibraryRecordValue
Writes one entry of the record this library keeps indata.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:
| Parameter | Type | Description |
|---|---|---|
| key | string | The entry key. |
| value | unknown | The value, a plain JSON value, or undefined to delete the entry. |
Returns: Promise<void> — A Promise that resolves when the file is saved.