-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#370 - Allow to disable bottom menu by configuring zero items.
- Loading branch information
Showing
4 changed files
with
50 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
@if (Items != null) | ||
@if (Items != null && Items.Count > 0) | ||
{ | ||
<div class="row my-2 items-@Items.Count"> | ||
@foreach (var item in Items) | ||
{ | ||
<div class="col"> | ||
@if (item.Url != null) | ||
<nav class="fixed-bottom d-block d-sm-none bottom-bar"> | ||
<div class="container"> | ||
<div class="row my-2 items-@Items.Count"> | ||
@foreach (var item in Items) | ||
{ | ||
<Match Url="@item.Url" PageType="@item.PageType" Context="IsActive"> | ||
<a href="@item.Url" class="btn btn-block @(IsActive ? "btn-primary" : "btn-light")"> | ||
<Icon Identifier="@item.Icon" /> | ||
<span class="text"> | ||
@item.Text | ||
</span> | ||
</a> | ||
</Match> | ||
} | ||
else | ||
{ | ||
<button @onclick="@item.OnClick" class="btn btn-block btn-light"> | ||
<Icon Identifier="@item.Icon" /> | ||
<span class="text"> | ||
@item.Text | ||
</span> | ||
</button> | ||
<div class="col"> | ||
@if (item.Url != null) | ||
{ | ||
<Match Url="@item.Url" PageType="@item.PageType" Context="IsActive"> | ||
<a href="@item.Url" class="btn btn-block @(IsActive ? "btn-primary" : "btn-light")"> | ||
<Icon Identifier="@item.Icon" /> | ||
<span class="text"> | ||
@item.Text | ||
</span> | ||
</a> | ||
</Match> | ||
} | ||
else | ||
{ | ||
<button @onclick="@item.OnClick" class="btn btn-block btn-light"> | ||
<Icon Identifier="@item.Icon" /> | ||
<span class="text"> | ||
@item.Text | ||
</span> | ||
</button> | ||
} | ||
</div> | ||
} | ||
</div> | ||
} | ||
</div> | ||
} | ||
</div> | ||
</nav> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters