Navigation Menu Base
forceCommunity:navigationMenuBase
An abstract component for customizing the navigation menu in a community, which loads menu data and handles navigation. The menu’s look and feel is controlled by the component that's extending it.
For Use In
Experience Builder Sites
Extend the forceCommunity:navigationMenuBase component to create a customized navigation component for the Customer Service template or custom Experience Builder templates. Provide navigation menu data using the menu editor in Experience Builder or via the NavigationMenuItem entity.
The menuItems attribute is automatically populated with an array of top-level menu items, each with the following properties:
id: Used by thenavigatemethod.label: The menu item’s display label.subMenu: An optional property, which is an array of menu items.
The navigationLinkSetId attribute takes the ID or Developer Name of the NavigationLinkSet to be rendered in the component.
Here's an example of a custom Navigation Menu component:
Here's an example of a controller: