ant-design-blazor/components/table/SummaryRow.razor

32 lines
570 B
C#
Raw Normal View History

@namespace AntDesign
@if (IsSummary)
{
<tr>@ChildContent</tr>
}
@code{
[CascadingParameter]
private ITable Table { get; set; }
[CascadingParameter(Name = "IsInitialize")]
private bool IsInitialize { get; set; }
[CascadingParameter(Name = "IsSummary")]
private bool IsSummary { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
protected override void OnInitialized()
{
base.OnInitialized();
if (IsInitialize)
{
Table.AddSummaryRow(this);
}
}
}