settings rewrite to JS

This commit is contained in:
Jokob-sk
2023-07-27 08:02:40 +10:00
parent dc2849f296
commit c351d2e8d4
4 changed files with 121 additions and 92 deletions

View File

@@ -382,12 +382,15 @@ Below are some general additional notes, when defining `params`:
> ```
#### Setting object structure
#### Setting object structure
Required attributes are:
- `"function": "<see Supported settings function values>"` - What function the setting drives or a simple unique code name
- `"type": "<text|integer|boolean|password|readonly|integer.select|text.select|text.multiselect|list|integer.checkbox>"` - The form control used for the setting displayed in the Settings page and what values are accepted.
- `"localized"` - a list of properties on the current JSON level which need to be localized
- `"name"` and `"description"` - Displayed in the Settings page. An array of localized strings. (see Localized strings below).
- (optional) `"events"` - `<test|run>` - to generate an execution button next to the input field of the setting (not fully tested)
##### Supported settings `function` values