_BolMenuItemPartial¶
Partial view that renders one menu entry as a form post button. A click posts targetApp and targetPage to the MenuItemClick handler of BolMenuModel.
Purpose¶
- Render a menu entry, mark it active from the
BasicAppMappage ids, and post the click to the menu model, which builds the redirect.
Context¶
- Namespace:
BolMiddleware.Pages.Shared - Assembly/package:
BolMiddleware
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| Partial view | Pages/Shared/_BolMenuItemPartial.cshtml |
Model BolNavItemViewModel; injects IOptions<BasicAppMap>; emits a button with asp-page-handler="MenuItemClick", targetApp, targetPage, and data-saif-page-name. |
Behavioral notes¶
- When the request path is empty, the
HomePageentry ofPageIdsis the fallback for marking the active item.
Constraints and usage notes¶
- The post skips anti-forgery validation because
BolMenuModeldisables it.
Sources¶
- src/BolMiddleware/Pages/Shared/_BolMenuItemPartial.cshtml