Menu part handler
: shell
: navigation
: menu-part-handler
: /modules/core/navigation/services/menu-part-handler.js
MenuPartHandler
The menu part handler creates menu shapes.
MenuPartHandler.handle(context, done)
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. |