You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/PageContentNavigation/PageContentNavigation.razor

20 lines
777 B

2 years ago
@namespace Connected.Components
@inherits UIComponent
@using Microsoft.AspNetCore.Components.Routing
<div class="@GetPanelClass()" @attributes="UserAttributes">
@if (_sections.Any() && _sections.Count() > 1)
{
<TextContent Typo="Typo.subtitle1" Class="title" GutterBottom="true">
@Headline
</TextContent>
<NavMenu Class="pl-4">
@foreach (var docSection in _sections.OrderBy(x => x.LevelSortingValue))
{
<Connected.Components.NavLink @key="docSection.Id" Match="NavLinkMatch.All" Class="@GetNavLinkClass(docSection)" @onclick="@(e => OnNavLinkClick(docSection.Id))">
@docSection.Title
</Connected.Components.NavLink>
}
</NavMenu>
}
</div>