MenuItemViewModel¶
View-model shape for a single Business Online menu entry, mapped one-to-one from the BusinessOnlineMenu service contract by Mappers.MapMenuViewModel and rendered by MenuExtensions.
Purpose¶
- View-model shape for a single Business Online menu entry, mapped one-to-one from the
BusinessOnlineMenuservice contract byMappers.MapMenuViewModeland rendered byMenuExtensions.
Context¶
- Namespace:
SAIF.Web.Mvc.ViewModels - Assembly/package:
SAIF.Framework.Web.Mvc (source-shipping NuGet package) - Kind: class
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| ApplicationName | public string ApplicationName { get; set; } |
Application the menu item belongs to; matched against the current request's application in current-item detection. |
| FavoriteName | public string FavoriteName { get; set; } |
Display name used for a favorited item; falls back to PageName when blank. |
| MenuCategory | public string MenuCategory { get; set; } |
Human-readable category grouping used to group items in the rendered menu. |
| MenuCategoryCode | public string MenuCategoryCode { get; set; } |
Category code used to filter the top menu to the current controller's category. |
| PageId | public string PageId { get; set; } |
Identifier matched against the computed current-item id to highlight the active menu entry. |
| PageLink | public string PageLink { get; set; } |
Relative link used to build the item's href. |
| PageName | public string PageName { get; set; } |
Fallback display name when FavoriteName is blank. |
| Tooltip | public string Tooltip { get; set; } |
Optional tooltip text shown on favorite links. |
Sources¶
src/Web.Mvc/ViewModels/MenuItemViewModel.cs