Menu Box is a component version of the Box Menu for when config.json:_isPageMenu = true
. Allowing menus to act as pages in an Adapt course.
Requires: adaptlearning/adapt-contrib-core#366
NOTE: Not supported in the AAT at this time.
The attributes listed below are used in component.json, course.json and contentObjects.json to configure Menu Box, and are properly formatted as JSON in example.json.
core model attributes: These are inherited by every Adapt component. Read more.
_component (string): This value must be: menuBox
.
_classes (string): CSS class name to be applied to Menu Boxโs containing div. The class must be predefined in one of the Less files. Separate multiple classes with a space.
_layout (string): This defines the horizontal position of the component in the block. Acceptable values are `full.
The following attributes, set within course.json, configure the defaults for Box Menu.
_globals (object): The Globals object that contains value for _component.
_component (object): The menu object that contains value for _menuBox.
_menuBox (object): The boxMenu object that contains value for durationLabel.
durationLabel (string): Optional text which precedes duration (e.g.,
"Duration:"
).
The following attributes, set within contentObjects.json, configure the defaults for Menu Box.
_menuBox (object): The boxMenu object that contains value for _renderAsGroup.
_renderAsGroup (boolean): Enable this option to render items into a group on the menu. Groups can display a title, body, and instruction text.
Framework: Change the group content object type to
menu
and update the_parentId
of the children content objects to match the group content object_id
. Authoring Tool: Add a submenu and check the 'Enable as menu group?' setting. All users: If accessibility is required update the aria level values in config settings so the title hierarchy remains intact.
No known limitations.
Author / maintainer: Adapt Core Team with contributors
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