Closed EdCharbeneau closed 4 years ago
Example
@typeparam TItem <table class="table"> <thead> <tr>@TableHeader</tr> </thead> <tbody> @foreach (var item in Items) { <tr>@RowTemplate(item)</tr> } </tbody> <tfoot> <tr>@TableFooter</tr> </tfoot> </table> @code { [Parameter] public RenderFragment TableHeader { get; set; } [Parameter] public RenderFragment<TItem> RowTemplate { get; set; } [Parameter] public RenderFragment TableFooter { get; set; } [Parameter] public IReadOnlyList<TItem> Items { get; set; } }
Added in 2.1
Example