---
title: BolTopMenuViewComponent
summary: API reference for BolTopMenuViewComponent.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
---

# 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 `BolMenuViewModel` for the `BolTopMenu` view.

## 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
