Skip to content

1.2. Configuring content containers

abasic edited this page Mar 10, 2020 · 2 revisions

Introduction

The following page explains how to configure content containers. Each type can have multiple content containers that need to be predefined within the scheme .activities-rc.json.

Preview

Element picker

Code Example

"contentContainers": [{
    "type": "PERSPECTIVE",
    "label": "Perspective",
    "types": ["HTML", "IMAGE", "VIDEO", "BRIGHTCOVE_VIDEO", "ASSESSMENT", "EMBED", "BREAK", "ACCORDION", "CAROUSEL", "MODAL", "TABLE", "PDF", "AUDIO"],
    "displayHeading": true,
    "multiple": true,
    "min": 1,
    "max": 3,
    "layout": true
}]

Content container properties

Property Description Values
type Defines the type of the container. String
label Label for the current container. String
multiple Defines if there can be multiple of a given content container within an activity. False by default. Boolean
min Defines minimum number of a given content container allowed within an activity.** Those will be auto-created. Number
max Defines the maximum number of a given content container allowed within an activity.** Must be greater or equal to min. Number
types An array of possible elements for the content container type. If not specified, all types of elements are allowed. All currently available types are displayed in the code example above. Array<String>
displayHeading Defines if the heading is displayed on the top of the content container. False by default. Boolean
layout Defines if elements inside the container can be displayed in two rows. False by default. Boolean