![]() |
dev.tirsvad.dk
Tirsvad Website: A Clean Architecture .NET solution using Blazor WebAssembly for modern, cloud-ready web applications. Supports SQLite/MySQL, containerization, and follows best practices for maintainability and scalability.
|
Represents a menu item in the application, supporting hierarchical (parent-child) relationships. More...


Properties | |
| Guid | Id [get, set] |
| Gets or sets the unique identifier for the menu item. | |
| string | Title = string.Empty [get, set] |
| Gets or sets the display title of the menu item. | |
| string? | Url [get, set] |
| Gets or sets the URL associated with the menu item, if any. | |
| string? | FontClassEmoji [get, set] |
| Gets or sets the font emoji associated with the menu item, if any. | |
| Guid? | ParentId [get, set] |
| Gets or sets the unique identifier of the parent menu item, if this item is a child. | |
| bool | IsEnabled = true [get, set] |
| Gets or sets a value indicating whether the menu item is enabled and if can be selected. | |
| bool | IsVisible = true [get, set] |
| Gets or sets a value indicating whether the menu item is visible in the navigation. | |
| int | Order [get, set] |
| Gets or sets the order of the menu item among its siblings. | |
| virtual ? ICollection< MenuFragment > | Children [get, set] |
| Gets or sets the collection of child menu items. | |
Represents a menu item in the application, supporting hierarchical (parent-child) relationships.
The MenuFragment entity is used to define navigational structures, such as site menus or submenus. Each menu item can have a parent (for nesting) and an ordered collection of child menu items.
Example usage:
|
getset |
Gets or sets the unique identifier for the menu item.
Implements Domain.Interfaces.IEntity.
|
getset |
Gets or sets a value indicating whether the menu item is enabled and if can be selected.
When true, the menu item is considered active and can be selected in the application's navigation structure. When false, the menu item is disabled and cannot be selected, but remains in the data store for potential future use or auditing.
|
getset |
Gets or sets a value indicating whether the menu item is visible in the navigation.
When true, the menu item is visible in the application's navigation structure. When false, the menu item is hidden from navigation but remains in the data store for potential future use or auditing.