ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

Home > @activeviam/activeui-sdk > SettingsManager > set

SettingsManager.set property

Set the value of a setting if allowed to. A setting cannot be overridden if it is defined in a permissions file. If editing is allowed, the new value will be written synchronously in the settings binding. If attached to a repository, a request will also be made to change the setting by writing into its preferences file.

Signature:

set: (key: SettingKey, newValue: SettingValue) => Promise<any>;

Example 1

settingsManager.set('component.canEdit', true);

Example 2

settingsManager.set('global.theme', 'dark').then(() => settingsManager.set('global.locale', 'en-US'));

  • SettingsManager.set property
  • Example 1
  • Example 2
Copyright © 2019 ActiveViam