We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee665dc commit 9121cbfCopy full SHA for 9121cbf
docs/editor-components/settings.md
@@ -24,6 +24,29 @@ const fontSize = settings.get('fontSize');
24
const theme = settings.get('appTheme');
25
```
26
27
+### Adding New Fields
28
+
29
+Add one field or more then one subfields using `value[]` attribute:
30
31
+```js
32
+// make sure to follow proper JSON syntax, these fields will be directly added to settings
33
34
+// syntax
35
+settings.value["your-superkey"] = {
36
+ key: value,
37
+ key: value
38
+ // repeat as per your needs
39
+}
40
41
+// Example Use
42
+settings.value["my-acode-plugin.id"] = {
43
+ fontSize: "16px",
44
+ port: 5000,
45
+ user: "john doe"
46
47
+```
48
49
50
### Updating Settings
51
52
Update one or more settings using the `update()` method:
0 commit comments