Skip to content

An extension for the Adapt Framework that offers different options for the screen layout.

License

Notifications You must be signed in to change notification settings

deltanet/adapt-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adapt-layout

Layout is an extension for the Adapt framework.

This extension offers different options for the screen layout.

Installation

This extension must be manually installed.

If Layout has been uninstalled from the Adapt authoring tool, it may be reinstalled using the Plug-in Manager.

Settings Overview

Layout is configured at course (course.json), article (articles.json), block (blocks.json) and component (components.json) level.

The attributes listed below are properly formatted as JSON in example.json.

Attributes

Course

The Layout attribute group contains values for _isEnabled, _disableOnMobile, _fullHeightEnabled, and _customHeight.

_isEnabled (boolean): Turns on and off the Layout extension. Can be set to disable Layout when not required.

_disableOnMobile (boolean): If set to true, the extension will be disabled on mobile devices.

_fullHeightEnabled (boolean): If set to true, all Articles and their Blocks will be set to the height of the device.

_customHeight (object): This _customHeight attributes group stores the properties for adding a custom height for the Articles and their Blocks. It contains values for _isEnabled, and _minHeight.

_isEnabled (boolean): If set to true, the specified minimum height will be added to all Articles and their Blocks.

_minHeight (number): Defines the CSS min-height.

Article

The Layout attribute group at article level contains values for _isEnabled, and _hasFullWidth.

_isEnabled (boolean): Turns on and off the Layout extension.

_hasFullWidth (boolean): If enabled the fullwidth functionality will be applied to the article.

Block

The Layout attribute group at block level contains values for _isEnabled, _disableFullHeight, _blockWidth, and _componentWidths.

_isEnabled (boolean): Turns on and off the Layout extension. Can be set to disable Layout when not required.

_disableFullHeight (boolean): If enabled the fullheight functionality will not be applied to the block.

_blockWidth (object): This _blockWidth attributes group stores the properties for changing the width of the block. It contains values for _isEnabled, and _width.

_isEnabled (boolean): Turns on and off the _blockWidth functionality.

_width (number): Sets the max-width of the block as a percentage.

_componentWidths (object): This _componentWidths attributes group stores the properties for changing the width of the components within the block. It contains values for _isEnabled, _left and _right.

_left (number): Sets the width of the left component when viewed on a large device.

_right (number): Sets the width of the right component when viewed on a large device.

Component

The Layout attribute group at component level contains values for _isEnabled, _hideoOn, and _icon.

_isEnabled (boolean): Turns on and off the Layout extension. Can be set to disable Layout when not required.

_hideoOn (string): Defines which devices the component is hidden on.

_icon (object): This _icon attributes group stores the properties for icon graphic shown in the body text. It contains values for _isEnabled, _class and _image.

_isEnabled (boolean): Turns on and off the _icon functionality.

_class (string): Class name for the icon used on medium and small devices. The class should be defined in the theme.

_image (string): File name (including path) of the image for the icon. Path should be relative to the src folder.

alt (string): This text becomes the image or icon alt attribute.

Limitations

No known limitations.


Version number: 3.2.0
Framework versions supported: 5.8+
Author / maintainer: DeltaNet with contributors
Accessibility support: Yes
RTL support: Yes
Authoring tool support: yes

About

An extension for the Adapt Framework that offers different options for the screen layout.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •