BolSideMenuViewComponent¶
View component that renders the left-hand BOL menu, including the favorites list, from a loaded BusinessOnlineMenu.
Purpose¶
- Wrap the menu and current page in a
BolMenuViewModelfor theBolSideMenuview.
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 side menu view. |
Behavioral notes¶
- Declared async but contains no await.
Constraints and usage notes¶
- The menu must be non-null; layouts show the error view otherwise (BR-BOLMIDDLEWARE-016).
Sources¶
- src/BolMiddleware/ViewComponents/BolSideMenuViewComponent.cs