BlazorTable
BlazorTable copied to clipboard
[Feat] Add support for .NET 6 cascading type parameters
In .NET 6 Blazor now supports cascading generic type parameters
This helps to remove all the TableItem
boilerplate we currently need in earlier versions. Will require multi-targeting of the BlazorTable package for NET 6 and prior versions to support this.
Example: in the samples all columns need the TableItem
<Column TableItem="PersonData" ...>
With the new feature we can add
@attribute [CascadingTypeParameter(nameof(TableItem))]
in the Table.razor
file. Then the column HTML would be:
<Column ...>