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.
Domain.Entities.MenuFragment Class Reference

Represents a menu item in the application, supporting hierarchical (parent-child) relationships. More...

Inheritance diagram for Domain.Entities.MenuFragment:
Collaboration diagram for Domain.Entities.MenuFragment:

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< MenuFragmentChildren [get, set]
 Gets or sets the collection of child menu items.

Detailed Description

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:

var mainMenu = new MenuFragment { Title = "Home" };
var subMenu = new MenuFragment { Title = "About", Parent = mainMenu };
Represents a menu item in the application, supporting hierarchical (parent-child) relationships.
Definition MenuFragment.cs:25
string Title
Gets or sets the display title of the menu item.
Definition MenuFragment.cs:35

Property Documentation

◆ Id

Guid Domain.Entities.MenuFragment.Id
getset

Gets or sets the unique identifier for the menu item.

Implements Domain.Interfaces.IEntity.

◆ IsEnabled

bool Domain.Entities.MenuFragment.IsEnabled = true
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.

◆ IsVisible

bool Domain.Entities.MenuFragment.IsVisible = true
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.


The documentation for this class was generated from the following file: