Skip to content

Commit

Permalink
JmTabs -> Render Items and Content if not null
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmys20 committed Jun 1, 2024
1 parent 2daf21d commit 35f959a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
@inherits BootstrapComponentBase

<CascadingValue Value="this" IsFixed>
<ul class="@CssClass" role="tablist" style="@Style" @attributes="AdditionalAttributes">
@Items
</ul>
@if (Items != null)
{
<ul class="@CssClass" role="tablist" style="@Style" @attributes="AdditionalAttributes">
@Items
</ul>
}

<div class="tab-content">
@Content
</div>
@if (Content != null)
{
<div class="tab-content">
@Content
</div>
}
</CascadingValue>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>1.0.8</Version>
<Version>1.0.9</Version>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Description>Collection of various Bootstrap components for Blazor.</Description>
Expand Down

0 comments on commit 35f959a

Please sign in to comment.