Newer Version Available
Configure Swappable Search and Profile Menu Components
- search, which contains the Search Publisher component
- profileMenu, which contains the Profile Header component
- navBar, which contains the Navigation Menu component
- Swap search and profile components in the default Customer Service theme layout or a custom theme layout.
- Swap theme layout components while persisting existing customizations, such as the selected search component.
forceCommunity:profileMenuInterface
Add the forceCommunity:profileMenuInterface interface to a Lightning component to allow it to be used as a custom profile menu component for the Customer Service (Napili) community template. After you create a custom profile menu component, admins can select it in Community Builder in to replace the template’s standard Profile Header component.
This code is for a simple profile menu component.
forceCommunity:searchInterface
Add the forceCommunity:searchInterface interface to a Lightning component to allow it to be used as a custom search component for the Customer Service (Napili) community template. After you create a custom search component, admins can select it in Community Builder in to replace the template’s standard Search & Post Publisher component.
This code is for a simple search component.