Coder Social home page Coder Social logo

adapt-contrib-menubox's Introduction

adapt-contrib-menuBox

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.

Settings Overview

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.

Attributes

component.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.

course.json

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:").

contentObjects.json

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.

Limitations

No known limitations.


adapt learning logo
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.