List is a presentation component which displays text in a list. The list items can be displayed with or without an image. If no image is defined then either a plain bullet (unordered) or numerical bullet that counts upwards per item (ordered) will display.
Layout | Image | Layout | Image |
---|---|---|---|
Images (maximum width of 64px) | Unordered and ordered lists | ||
Columns with images | Columns with unordered and ordered lists |
core model attributes: These are inherited by every Adapt component. Read more.
This must be set to: "list"
.
CSS class name(s) to be applied to this component's containing div
. The class must be predefined in one of the Less files. Separate multiple classes with a space.
This defines the horizontal position of the component in the block. Acceptable values are full
, left
or right
.
Defines the number of columns wide the _items are displayed in. If the value of _numberOfColumns is 2
, each _items will be 50% wide. Similarly, if the value of _numberOfColumns is 3
, each _items will be 33.3% wide. In mobile view, the width of each _items is 100%.
If set to true
, each item in the list will be numbered. This setting will only take affect if there are no list item images defined. The default value is false
.
If set to true
, the list of items will animate when scrolled into view. The default value is false
.
Controls what percentage of the list items height needs to be in the viewport in order for the items to animate. Default value is to animate when 70% 'in view'. You only need to set this property if you want to override the default value.
Controls the horizontal alignment of the list items. This setting will only take affect if the _columns
property has a value above 0
. Values available utilise the CSS property justify-content
. The default value is start
. It contains the following settings:
start
: Aligns the list item with the natural page direction. In a left-to-right course this is left by default.center
: Aligns the list item to the center of the container.end
: Aligns the list item to the opposite side of the natural page direction. In a left-to-right course this is right by default.
Controls the vertical alignment of the list item image or bullet alongside the text content. If the _columns
property has a value above 0
then the alignment switches from vertical to horizontal. Values available utilise the CSS property align-items
. The default value is start
. It contains the following settings:
start
: Aligns the list item image or bullet to the top of the container. If_columns
is used then this setting aligns the list item image or bullet with the natural page direction. In a left-to-right course this is left by default.center
: Aligns the list item image or bullet to the center of the container vertically. If_columns
is used then this setting aligns the list item image or bullet horizontally.end
: Aligns the list item image or bullet to the bottom of the container. If_columns
is used then this setting aligns the list item image or bullet to the opposite side of the natural page direction. In a left-to-right course this is right by default.
Multiple items may be created. Each item represents one list item for this component. It contains the following settings:
This is the title text for the list item.
This is the main body text for the list item.
The graphic object that defines the image which is rendered alongside the body text. It contains the following settings:
File name (including path) of the image. Path should be relative to the src
folder (e.g. "course/en/images/origami-menu-two.jpg"
). Only supported when _orderedList is set to false
.
The alternative text for this image. Assign alt text to images that convey course content only.
Optional text to be displayed as an attribution. By default it is displayed below the image. Adjust positioning by modifying CSS. Text can contain HTML tags, e.g., Copyright © 2015 by <b>Lukasz 'Severiaan' Grela</b>
This is the body text that will appear after the list items.
No known limitations.
Author / maintainer: Kineo
Accessibility support: WAI AA
RTL support: Yes
Cross-platform coverage: Chrome, Chrome for Android, Firefox (ESR + latest version), Edge, IE11, Safari 14 for macOS/iOS/iPadOS, Opera