context-menu
Overview
The context-menu is accessible via the ‘more’ icon on the right-hand-side of the app title bar.
context-menu should be used to display contextual items or actions relevant to the current view. Items that are relevant to the app globally (e.g. About, Messages, selecting a different language) should rather be displayed in the navigation drawer.

Referencing the image above, a context-menu consists of:
Custom
itemelementsdividerelementsNon-customizable app items, which are provided by the JourneyApps Runtime
Basic Example

Standard Attributes
None
Advanced Attributes
from-js
from-jsOptional
Default: unset
Construct a context-menu from JavaScript/TypeScript using a $:function that returns a contextMenu object.
id
ididitems
itemsOptional
Default: unset
Construct context-menu items from Javascript/TypeScript using a $:function that returns an object array of type contextMenuItem.
show-if and hide-if
show-ifhide-ifshow-if and hide-ifComponent Methods
The following component methods are available when an id is assigned to the component and component.contextmenu({id:'my-id'}) is called from JS/TS:
select
selectProgrammatically select an item from the context-menu by its label.
Last updated
