Browse Source
Merge pull request #1701 from abpframework/maliming/menuicon
Resolve #1697 Show menu and submenu icon.
pull/1710/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
17 additions and
1 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Components/Menu/Default.cshtml
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Components/Menu/_MenuItem.cshtml
|
|
|
@ -27,7 +27,16 @@ |
|
|
|
{ |
|
|
|
<li class="nav-item"> |
|
|
|
<div class="dropdown"> |
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="Menu_@(menuItem.Name)" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">@menuItem.DisplayName</a> |
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="Menu_@(menuItem.Name)" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
|
|
@if (menuItem.Icon != null) |
|
|
|
{ |
|
|
|
if (menuItem.Icon.StartsWith("fa")) |
|
|
|
{ |
|
|
|
<i class="@menuItem.Icon"></i> |
|
|
|
} |
|
|
|
} |
|
|
|
@menuItem.DisplayName |
|
|
|
</a> |
|
|
|
<div class="dropdown-menu" aria-labelledby="Menu_@(menuItem.Name)"> |
|
|
|
@foreach (var childMenuItem in menuItem.Items) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -10,6 +10,13 @@ |
|
|
|
if (Model.Url != null) |
|
|
|
{ |
|
|
|
<a class="dropdown-item @cssClass @disabled" href="@(Model.Url ?? "#")" @Html.Raw(elementId)> |
|
|
|
@if (Model.Icon != null) |
|
|
|
{ |
|
|
|
if (Model.Icon.StartsWith("fa")) |
|
|
|
{ |
|
|
|
<i class="@Model.Icon"></i> |
|
|
|
} |
|
|
|
} |
|
|
|
@Model.DisplayName |
|
|
|
</a> |
|
|
|
} |
|
|
|
|