Record
public record NavigationTree : System.IEquatable<Moka.Docs.Core.Navigation.NavigationTree>
Namespace: Moka.Docs.Core.Navigation
The complete navigation tree for the site sidebar.
Inheritance
Implements: System.IEquatable<Moka.Docs.Core.Navigation.NavigationTree>
Properties
Empty
NavigationTree NavigationTree.Empty { get; }
Empty navigation tree.
Items
List<NavigationNode> NavigationTree.Items { get; init; }
Top-level navigation items.
Type Relationships
classDiagram
style NavigationTree fill:#f9f,stroke:#333,stroke-width:2px
NavigationTree ..|> NavigationTree~ : implements
View Source
/// <summary>
/// The complete navigation tree for the site sidebar.
/// </summary>
public sealed record NavigationTree
{
/// <summary>Top-level navigation items.</summary>
public List<NavigationNode> Items { get; init; } = [];
/// <summary>Empty navigation tree.</summary>
public static NavigationTree Empty => new();
}