@namespace AntDesign @inherits ColumnBase @using AntDesign.Helpers @using AntDesign.TableModels @typeparam TData @if (IsPlaceholder) { } else if (IsColGroup) { if (Width > 0) { } } else if (IsHeader) { @if (Sortable) { if (ShowSorterTooltip) { @ToolTipSorter(this) } else { @SortHeader(this) } } else { @HeaderTitle } } 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; readonly RenderFragment> SortHeader = col => @
@col.HeaderTitle
; readonly RenderFragment> ToolTipSorter = col => @ @col.SortHeader(col) ; }