+
+`;
+
exports[`ListControl should render list with nested object 1`] = `
.emotion-22 {
@@ -212,7 +1868,11 @@ exports[`ListControl should render list with nested object 1`] = `
classname="css-1e1b0lr-StyledListItemTopBar e14bfka81"
collapsed="true"
data-testid="styled-list-item-top-bar-0"
- />
+ >
+
+
@@ -236,7 +1896,11 @@ exports[`ListControl should render list with nested object 1`] = `
classname="css-1e1b0lr-StyledListItemTopBar e14bfka81"
collapsed="true"
data-testid="styled-list-item-top-bar-1"
- />
+ >
+
+
@@ -459,7 +2123,11 @@ exports[`ListControl should render list with nested object with collapse = false
classname="css-1e1b0lr-StyledListItemTopBar e14bfka81"
collapsed="false"
data-testid="styled-list-item-top-bar-0"
- />
+ >
+
+
@@ -483,7 +2151,11 @@ exports[`ListControl should render list with nested object with collapse = false
classname="css-1e1b0lr-StyledListItemTopBar e14bfka81"
collapsed="false"
data-testid="styled-list-item-top-bar-1"
- />
+ >
+
+
diff --git a/website/content/docs/widgets/list.md b/website/content/docs/widgets/list.md
index 8dc64832..e8007ed9 100644
--- a/website/content/docs/widgets/list.md
+++ b/website/content/docs/widgets/list.md
@@ -13,6 +13,7 @@ The list widget allows you to create a repeatable item in the UI which saves as
- `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
- `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
- `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):
@@ -63,3 +64,13 @@ The list widget allows you to create a repeatable item in the UI which saves as
- {label: Quote, name: quote, widget: string, default: "Everything is awesome!"}
- {label: Author, name: author, widget: string }
```
+- **Example** (`minimize_collapsed` marked `true`):
+ ```yaml
+ - label: "Testimonials"
+ name: "testimonials"
+ minimize_collapsed: true
+ widget: "list"
+ fields:
+ - {label: Quote, name: quote, widget: string, default: "Everything is awesome!"}
+ - {label: Author, name: author, widget: string }
+ ```