Last active
October 31, 2019 23:57
-
-
Save fredgdaley2/17b59377412841a6b4584e2a74e179f0 to your computer and use it in GitHub Desktop.
Blazor Component - ForEach
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
@typeparam TItem | |
@foreach (var item in Items) | |
{ | |
@ItemTemplate(item) | |
} | |
@code { | |
[Parameter] public RenderFragment<TItem> ItemTemplate { get; set; } | |
[Parameter] public IEnumerable<TItem> Items { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment