BolTopMenuViewComponent¶
View component that renders the BOL top navigation bar from a loaded BusinessOnlineMenu, filtering items by the application menu category.
Purpose¶
- Wrap the menu and current page in a
BolMenuViewModelfor theBolTopMenuview.
Context¶
- Namespace:
BolMiddleware.Components - Assembly/package:
BolMiddleware
Public members¶
| Member | Signature | Purpose |
|---|---|---|
InvokeAsync |
Task<IViewComponentResult> InvokeAsync(BusinessOnlineMenu menu, string currentPage) |
Builds the view model and returns the default top menu view. |
Behavioral notes¶
- Declared async but contains no await.
Constraints and usage notes¶
- The view filters by
BasicAppMap.AppMenuCategory.
Sources¶
- src/BolMiddleware/ViewComponents/BolTopMenuViewComponent.cs