diff --git a/docs/MODULE-GUIDE.md b/docs/MODULE-GUIDE.md index 71969b5..5b7dc1c 100644 --- a/docs/MODULE-GUIDE.md +++ b/docs/MODULE-GUIDE.md @@ -104,7 +104,7 @@ the app); its settings are kept for a later reinstall. Both schemas map field names to specs: ``` -{ "type": "string" | "text" | "number" | "boolean" | "switch" | "select" | "color" | "password" | "endpoint", +{ "type": "string" | "text" | "number" | "boolean" | "switch" | "select" | "multiselect" | "color" | "password" | "endpoint", "label": "Shown next to the field", "default": , "group": "Section heading", // optional; see below @@ -125,6 +125,11 @@ shown or enabled, off means hidden or disabled, and the label shouldn't say so twice. `color` renders a swatch picker and stores a `#rrggbb` string (give it a hex default; the tile applies it as a CSS custom property — see `pco-plan`). +`multiselect` is several picks from one list — the same `options` / +`optionsRoute` as `select`, rendered as one switch per option and stored as +an array of values. A saved value the list no longer offers stays checked and +marked, so nothing is dropped behind the admin's back (admin config only). + `text` is a multi-line string — a `