@namespace AntDesign @inherits ColumnBase @using AntDesign.Core.Helpers @using AntDesign.TableModels @using System.ComponentModel.DataAnnotations @using System.Reflection @typeparam TData @if (IsInitialize) { return; } else if (Hidden) { return; } else if (IsPlaceholder) { } else if (IsMeasure) {
 
} else if (IsColGroup) { @if (AppendExpandColumn) { } if (Width != null) { } else { } } else if (IsHeader && HeaderColSpan != 0) { @if (AppendExpandColumn) { } var headerCellAttributes = OnHeaderCell?.Invoke(); @if (Sortable || (_filterable && _filters?.Any() == true)) { @FilterToolTipSorter } else if (TitleTemplate != null) { @TitleTemplate } else { @HeaderTitle } } else if (IsBody && RowSpan != 0 && ColSpan != 0) { var fieldText = !string.IsNullOrWhiteSpace(Format) ? Formatter.Format(Field, Format) : Field?.ToString(); @if (AppendExpandColumn) { @if (Table.RowExpandable(RowData) && (!Table.TreeMode || !RowData.HasChildren)) { } } var cellAttributes = OnCell?.Invoke(RowData); @if (ColIndex == Table.TreeExpandIconColumnIndex && Table.TreeMode) { @if (RowData.HasChildren) { } else { } } @if (CellRender != null) { @CellRender(Field) } else if (ChildContent != null) { @ChildContent } else { if (!string.IsNullOrWhiteSpace(Format)) { @(Formatter.Format(Field, Format)) } else { @Field } } } @code { string HeaderTitle => Title ?? DisplayName ?? FieldName; RenderFragment SortHeader => @; RenderFragment ToolTipSorter => @; RenderFragment FilterToolTipSorter => @; RenderFragment FilterInput => filter => @; }