BlazorTable icon indicating copy to clipboard operation
BlazorTable copied to clipboard

[Feat] Add support for .NET 6 cascading type parameters

Open conficient opened this issue 2 years ago • 0 comments

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  ...>

conficient avatar Nov 10 '21 13:11 conficient