Last active
November 28, 2019 01:43
-
-
Save fredgdaley2/0ba3ee0ef29da2568e2df051b1424ef4 to your computer and use it in GitHub Desktop.
Blazor Component - Conditional Display
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
@if (Show) | |
{ | |
@ChildContent | |
} | |
@code { | |
[Parameter] public bool Show { get; set; } | |
[Parameter] | |
public RenderFragment ChildContent { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment