@namespace AntDesign @inherits ColumnBase @using AntDesign.Core.Helpers @using AntDesign.TableModels @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 { @ColumnTitle() } } 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 cellData = new CellData(RowData, Field, Format); var cellAttributes = OnCell?.Invoke(cellData); @{ var title = Context.HeaderColumns.LastOrDefault(x => x.ColIndex <= ColIndex && x.ColIndex + x.HeaderColSpan > ColIndex)?.Title; } @if (ColIndex == Table.TreeExpandIconColumnIndex && Table.TreeMode) { @if (RowData.HasChildren) { } else { } } @if (CellRender != null) { @CellRender(cellData) } else if (ChildContent != null) { @ChildContent } else { @cellData.FormattedValue } } @code { RenderFragment ColumnTitle() { return @ @if (TitleTemplate != null) { @TitleTemplate } else { @Title } ; } RenderFragment SortHeader => @ ; RenderFragment ToolTipSorter => @ ; RenderFragment FilterToolTipSorter => @ ; RenderFragment FilterInput => filter => @ ; }