Edit this topic

Menu part handler

: shell

: navigation

: menu-part-handler

: /modules/core/navigation/services/menu-part-handler.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/navigation/services/menu-part-handler.js

The menu part handler creates menu shapes.

Kind: global variable

Adds a menu shape to context.shapes for the menu part on the context.

Kind: static method of MenuPartHandler

Param Type Description
context object The context object.
context.part object The menu part to handle.
context.partName string The name of the part.
context.displayType string The display type.
context.item object A reference to the content item.
context.shapes Array The shapes array to which new shapes must be pushed.
context.scope object The scope.
done function The callback.