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.
29 lines
1.1 KiB
29 lines
1.1 KiB
2 years ago
|
@using Biskilog_Accounting.Client.Models;
|
||
|
@if (Item.Children.Count == 0)
|
||
|
{
|
||
|
<li class="menu-item @(Item.Id == ActiveId ? "active":"")" @onclick="(() => ItemClick(Item.Id))">
|
||
|
<a href="@Item.Link" class="menu-link">
|
||
|
<i class="menu-icon tf-icons bx @Item.Icon"></i>
|
||
|
<div data-i18n="Analytics">@Item.Title</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<li class="menu-item @m_expand @(Item.Children.Any(a => a.Id == ActiveId) ? "active":"")" @onclick="Toggle">
|
||
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
||
|
<i class="menu-icon tf-icons bx @Item.Icon"></i>
|
||
|
<div data-i18n="Form Elements">@Item.Title</div>
|
||
|
</a>
|
||
|
<ul class="menu-sub">
|
||
|
@foreach (NavItem navItem in Item.Children)
|
||
|
{
|
||
|
<li class="menu-item @(navItem.Id == ActiveId ? "active":"")" @onclick:stopPropagation="true" @onclick="(() => ItemClick(navItem.Id))">
|
||
|
<a href="@navItem.Link" class="menu-link">
|
||
|
<div data-i18n="Basic Inputs">@navItem.Title</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
}
|
||
|
</ul>
|
||
|
</li>
|
||
|
}
|