Skip to content

Allow multiple menus #1902

Description

@oliverfoster

I'd like this plugin to become part of core > https://github.com/cgkineo/adapt-menu-controller
It provides a mechanism to register menus and assign menu types.

Register API

/* duplicate Adapt.register API
 * might be able to use Adapt.register to register menus, although that'd produce some 
 * oddities, like being able to specify a menu as a component type
 * keeping the register collections segregated might be less sensible in the long run
 * having one interface to register all plugins would be my preference
 */ 
Adapt.registerMenu("name", View);

contentObject.json and course.json menuType specification

// needed
"_menuType": "cover"
    
 // this multi device config is rarely used and can be removed
"_menuType": {
  "large": "hotspot",
  "small touch": "block",
  "medium notouch": "hotspot",
  "small medium": "block"
}

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions