Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant