BlazorTable icon indicating copy to clipboard operation
BlazorTable copied to clipboard

Add support for cascading generics when available [Feat]

Open conficient opened this issue 4 years ago • 0 comments
trafficstars

At present we have to specify the generic table type in each column:

<Table TableItem="PersonData" Items="data" PageSize="15">
    <Column TableItem="PersonData" Title="Id" Field="@(x => x.id)" Sortable="true" Filterable="true" Width="10%" />
    <Column TableItem="PersonData" Title="First Name" Field="@(x => x.first_name)" Sortable="true" Filterable="true" Width="20%" />
    <Column TableItem="PersonData" Title="Last Name" Field="@(x => x.last_name)" Sortable="true" Filterable="true" Width="20%" />

With this PR: https://github.com/dotnet/aspnetcore/pull/29767 we should be able to use a CascadeTypeParam ?

Not sure but I suspect this will be in NET 6

conficient avatar Feb 16 '21 16:02 conficient