The Core Component Container component allows for the creation of a container for multiple additional components on a page.
The Core Component Container component allows for the creation of a container for multiple additional components on a page and can be used to group other components and apply a common style or layout.
Version and Compatibility
The current version of the Container Component is v1, which was introduced with release 2.5.0 of the Core Components in June 2019, and is described in this document.
The following table details all supported versions of the component, the AEM versions with which the versions of the component is compatible, and links to documentation for previous versions.
AEM as a Cloud Service
For more information about Core Component versions and releases, see the document Core Components Versions .
Sample Component Output
The configure dialog allows the content author to define the container item and how it will behave and appear for a visitor to the page.
- Layout- This option defines the behavior or the layout behavior of the Container Component.
- Simple- Defines a container as a simple collection of components
- ID- Use this option to define the HTML ID attribute to apply to the component.
The design dialog allows the template author to define the options available to the content author who uses the Container Component.
Allowed Components Tab
Allowed Componentstab is used to define which components can be added as items to the Container Component by the content author.
The Allowed Components tab functions in the same way as the tab of the same name when defining the policy and properties of a Layout Container in the Template Editor.
Default Components Tab
The Default Components tab is used to define which component is added to the component when a particular asset type is dropped on the container, similar to how default components are defined on the page template .
Responsive Settings Tab
- Columns- Defines the number of columns in the grid of the resulting container.
- Background Image
- Enable background image- Select this option to enable the content author to define a background image for the container.
- Background Color
- Enable background color- Select this option to enable the content author to define a background color for the container.
- Swatches only- Select this option to only allow the content author to select from pre-defined color swatches for the container background color.
- Only available whenEnable background coloris selected
- Allowed Swatches- Define pre-defined colors from which the content author can select the container background color
- Use theAddbutton to add a pre-defined color swatch. Once added, an entry is added to the list, which contains the following columns:
- Value- Define the color manually via RGB values
- Tap or click the color picker to more easily select a color by adjusting individual RGB values or defining a hex value.
- Delete- Tap or click to delete a swatch.
- Rearrange- Tap or click and drag to rearrange the order of the swatches.