alexnoddings / Tyne

C# libaries designed for making Line of Business Blazor apps more efficiently.
https://alexnoddings.github.io/Tyne/
MIT License
2 stars 0 forks source link

Column header improvements #150

Closed alexnoddings closed 3 months ago

alexnoddings commented 3 months ago

The ColumnPopoverHeader should have a Label property. Currently we have usage like:

<SomeColumnHeader Label="This label is shown in the popover">
    This content is shown on the column header
</SomeColumnHeader>

Which means a lot of column definitions end with duplication:

<SomeColumnHeader Label="Username">
    Username
</SomeColumnHeader>

Instead, we should default column popover headers to use the Label in the column header if no ChildContent is provided.

This is a behaviour-breaking, but non-build-breaking change. However it is a big QoL improvement, and I don't know of any use case for empty column headers that provide filtering.