ant-design-blazor/components/table/SimpleTableHeader.cs
James Yeung 643c6de31e
feat(module: table): support for header grouping and row template (#2973)
* feat(module:table): header template and item template

* add demos

* fix merge conflict

* rename some api

Co-authored-by: anranruye <hehewewe@hotmail.com>
2023-01-02 20:35:03 +08:00

24 lines
748 B
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace AntDesign
{
public class SimpleTableHeader : ActionColumn
{
protected override void OnInitialized()
{
if (ColSpan != 1) HeaderColSpan = ColSpan;
if (ChildContent != null) TitleTemplate = ChildContent;
base.OnInitialized();
}
protected override void OnParametersSet()
{
if (ColSpan != 1) HeaderColSpan = ColSpan;
if (ChildContent != null) TitleTemplate = ChildContent;
base.OnParametersSet();
}
}
}