Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

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

Open
conficient opened this issue Nov 10, 2021 · 0 comments
Open

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

conficient opened this issue Nov 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@conficient
Copy link
Collaborator

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 conficient added the enhancement New feature or request label Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant