Skip to content

Commit

Permalink
Sidebar href add (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih-duman authored May 22, 2024
1 parent e30512e commit 298d143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blazorbootstrap/Components/Sidebar/Sidebar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

<CascadingValue IsFixed="true" Value="this">
<CascadingValue Value="@collapseSidebar">
<aside @ref="@Element" id="@Id" class="@ClassNames" style="@StyleNames" role="navigation" @attributes="@AdditionalAttributes">
<aside @ref="@Element" id="@Id" class="@ClassNames" style="@StyleNames" role="navigation"
@attributes="@AdditionalAttributes">
<div class="bb-sidebar-top-row navbar">
<div class="container-fluid ps-3">
<a class="navbar-brand d-flex align-items-center" href="">
<a class="navbar-brand d-flex align-items-center" href="@Href">
@if (!string.IsNullOrWhiteSpace(ImageSrc))
{
<span class="navbar-brand-image me-2">
Expand Down
3 changes: 3 additions & 0 deletions blazorbootstrap/Components/Sidebar/Sidebar.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,8 @@ private string GetNavMenuCssClass()
[EditorRequired]
public string? Title { get; set; } = default!;

[Parameter]
public string? Href { get; set; }

#endregion
}

0 comments on commit 298d143

Please sign in to comment.