Class UrlMenuItem
- Namespace
- JJConsulting.Infinity.Domain.Menu
- Assembly
- JJConsulting.Infinity.Domain.dll
Represents a menu item that links to a specific URL. Inherits from the base JJConsulting.Infinity.Domain.Menu.MenuItem class and adds URL-specific properties.
public class UrlMenuItem : MenuItemInheritance
Inherited Members
Properties
Description
Provides an optional description for the menu item. This property can be used to store additional information or context about the purpose or usage of the menu item.
public string? Description { get; set; }Property Value
IsRedirect
public bool IsRedirect { get; init; }Property Value
Slug
Represents a unique, human-readable identifier for the URL menu item. The slug is used to construct user-friendly URLs and should be unique within the context.
[MaxLength(64)]
[Required(ErrorMessage = "The {0} field is required.")]
public required string Slug { get; init; }Property Value
Url
Represents a unique, human-readable identifier for the URL menu item. The slug is typically used to construct user-friendly URLs and should be unique within the context.
[Required(ErrorMessage = "The {0} field is required.")]
[MaxLength(2048)]
public required string Url { get; init; }