Background is an extension for the Adapt framework.
This extension allows an image to be added to a page, menu, article, block or component as a background.
This extension must be manually installed.
If Background has been uninstalled from the Adapt authoring tool, it may be reinstalled using the Plug-in Manager.
Background is configured on four levels: page (contentObjects.json), article (articles.json), and block (blocks.json).
The attributes listed below are properly formatted as JSON in example.json.
The Background selector attribute group contains values for _isEnabled, _color, _image, _gradient, and _video.
_isEnabled (boolean): Turns on and off the Background extension. Can be set to disable Background when not required.
_color (string): Defines the CSS background color class.
_image (object): This
_imageattributes group stores the properties for the images. It contains values for _isEnabled, _position, _size, _repeat, _attachment, _opacity, _largeSrc, largeAlt, _mediumSrc, mediumAlt, _smallSrc, and smallAlt.
_isEnabled (boolean): If set to
true, the defined images will display.
_position (string): Defines the CSS background position class.
_size (string): Defines the CSS background size class.
_repeat (string): Defines the CSS background repeat class.
_attachment (string): Defines the CSS background attachment class.
_opacity (string): Defines the opacity of the image.
_largeSrc (string): File name (including path) of the large image. Path should be relative to the src folder.
largeAlt (string): This text becomes the large image’s
altattribute.
_mediumSrc (string): File name (including path) of the medium image. Path should be relative to the src folder.
mediumAlt (string): This text becomes the medium image’s
altattribute.
_smallSrc (string): File name (including path) of the mobile image. Path should be relative to the src folder.
smallAlt (string): This text becomes the mobile image’s
altattribute.
_gradient (object): This
_gradientattributes group stores the properties for the background gradient. It contains values for _isEnabled, _type, and _colors.
_type (string): Defines the type of gradient used. Options are
Bottom Left to Top Right,Left to Right,Top Left to Bottom Right,Top to Bottom,Radial,Radial Top,Radial Bottom,Radial Left, andRadial Right.
_colors (string): Defines the colors used for the gradient. Format should be a comma separated list of Hex Color Codes.
_video (object): This
_videoattributes group stores the properties for the video background. It contains values for _isEnabled, _loopEnabled, _disableOnMobile, and _src.
_isEnabled (boolean): If set to
true, the specified video will be shown as the background.
_loopEnabled (boolean): If set to
true, the video will play in a loop.
_disableOnMobile (boolean): If set to
true, the video will be hidden on mobile devices.
_src (string): File name (including path) of the video. Path should be relative to the src folder.
No known limitations.
Version number: 1.0.0
Framework versions supported: 5.19.1+
Author / maintainer: Robert Peek
Accessibility support: Yes
RTL support: Yes
Authoring tool support: yes