feat: add widgets schema validation (#3841)
This commit is contained in:
@ -10,10 +10,11 @@ The list widget allows you to create a repeatable item in the UI which saves as
|
||||
- **Data type:** list of widget values
|
||||
- **Options:**
|
||||
- `default`: if `fields` is specified, declare defaults on the child widgets; if not, you may specify a list of strings to populate the text field
|
||||
- `allow_add`: if added and labeled `false`, button to add additional widgets disappears
|
||||
- `collapsed`: if added and labeled `false`, the list widget's content does not collapse by default
|
||||
- `allow_add`: if added and set to `false`, hides the button to add additional items
|
||||
- `collapsed`: if added and set to `false`, the list widget's content does not collapse by default
|
||||
- `summary`: allows customization of a collapsed list item object in a similar way to a [collection summary](/docs/configuration-options/?#summary)
|
||||
- `minimize_collapsed`: if added and labeled `true`, the list widget's content will be completely hidden instead of only collapsed if the list widget itself is collapsed
|
||||
- `minimize_collapsed`: if added and set to `true`, the list widget's content will be completely hidden instead of only collapsed if the list widget itself is collapsed
|
||||
- `label_singular`: singular label to show as a part of the add button
|
||||
- `field`: a single widget field to be repeated
|
||||
- `fields`: a nested list of multiple widget fields to be included in each repeatable iteration
|
||||
- **Example** (`field`/`fields` not specified):
|
||||
|
Reference in New Issue
Block a user