document settingDefaults

pull/21833/head
Bruno Windels 2019-05-31 15:00:26 +02:00
parent 512c9b2ac8
commit 9e4d8e7dfe
1 changed files with 11 additions and 0 deletions

View File

@ -51,6 +51,17 @@ Settings are the different options a user may set or experience in the applicati
} }
``` ```
Settings that support the config level can be set in the config file under the `settingDefaults` key (note that the "theme" setting is special cased to the `default_theme` in the config file):
```
{
...
settingDefaults: {
settingName: true
},
...
}
```
### Getting values for a setting ### Getting values for a setting
After importing `SettingsStore`, simply make a call to `SettingsStore.getValue`. The `roomId` parameter should always After importing `SettingsStore`, simply make a call to `SettingsStore.getValue`. The `roomId` parameter should always