2020-05-22 12:53:58 +01:00
|
|
|
<div class="top-row pl-4 navbar navbar-dark">
|
2020-05-22 11:23:25 +01:00
|
|
|
<a class="navbar-brand" href="">Example.ASPBlazor</a>
|
|
|
|
<button class="navbar-toggler" @onclick="ToggleNavMenu">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
|
|
|
|
<ul class="nav flex-column">
|
|
|
|
<li class="nav-item px-3">
|
|
|
|
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
|
|
|
<span class="oi oi-home" aria-hidden="true"></span> Home
|
|
|
|
</NavLink>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
private bool collapseNavMenu = true;
|
|
|
|
|
|
|
|
private string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
|
|
|
|
|
|
|
private void ToggleNavMenu()
|
|
|
|
{
|
|
|
|
collapseNavMenu = !collapseNavMenu;
|
|
|
|
}
|
|
|
|
}
|