CollectionDisplay
An object used in any container component type to define how the collection of child components is presented.
Declaration
object CollectionDisplayProperties
| Name | Type | Description |
|---|---|---|
type Required | string | Always |
alignment | string | A string that defines how components are aligned within their rows. This is especially visible when Valid values:
|
distribution | string | A string that defines how components should be distributed horizontally in a row. Valid values:
|
gutter | (SupportedUnits | number) | A number in points or a string referring to a supported unit of measure defining the vertical gutter between components. See Specifying Measurements for Components. This value cannot be negative. |
maximumWidth | (SupportedUnits | number) | A number in points or a string referring to a supported unit of measure defining the maximum width of each child component inside the collection. If the If no |
minimumWidth | (SupportedUnits | number) | A number in points or a string referring to a supported unit of measure defining the minimum width of each child component inside the collection.
This value cannot be negative. |
rowSpacing | (SupportedUnits | number) | A number in points or a string referring to a supported unit of measure defining the horizontal spacing between rows. See Specifying Measurements for Components. This value cannot be negative. |
variableSizing | boolean | A Boolean value that defines whether the components’ area is allowed to be sized differently per row. If If |
widows | string | A string that defines the approach to prevent the collection from having component widows. Valid values:
|
Discussion
This image shows a CollectionDisplay with a distribution property of wide.
[Image]
This image shows a CollectionDisplay with a distribution property of narrow.
[Image]
This object can be used in Header, Container, Section, Chapter, Aside, and ArticleLink.
Example
{
"components": [
{
"role": "container",
"contentDisplay": {
"type": "collection",
"minimumWidth": 150,
"gutter": "15",
"rowSpacing": "30",
"distribution": "wide"
},
"components": [
{
"role": "image",
"URL": "bundle://gallery-02.jpg",
"caption": "Coyotes are also seen in cities more often."
},
{
"role": "image",
"URL": "bundle://gallery-03.jpg",
"explicitContent": true
}
]
}
]
}