Setting fields
Every kind of field, and what its value is.
| Field | Value | Options |
|---|---|---|
setting.text | string | placeholder, multiline, source, dependsOn, live |
setting.number | number | min, max, step |
setting.boolean | boolean | |
setting.color | string, as #rrggbb | |
setting.select | One of the choices | The choices, as { value: "Label" } or a list |
setting.pick | string | The source, then first and dependsOn |
setting.page | string, the page's name | none |
setting.slots | string[], such as ["key:0"] | |
setting.image | string | live |
setting.groups | { id, name, members }[] | source. For the plugin's own settings only. |
setting.secret | string | For the plugin's own settings only |
All of them take:
| Option | What it does |
|---|---|
default | What it starts as |
description | A line under the field |
required | Refuses an empty field |
validate | Says what is wrong, as a function or a Standard Schema |
visibleIf | Shows it only while another field has a value: { mode: "set" } |
appearance | It only changes how the button looks, so workflow steps leave it out |
Settings explains how they work together.