@namespace AntDesign @inherits AntDomComponentBase @using AntDesign.TableModels @typeparam TItem
@if (!HidePagination && PaginationPosition.Contains("top")) { } @ChildContent(_fieldModel)
@if (TitleTemplate != null || Title != null) {
@if (TitleTemplate != null)@TitleTemplate else @Title
}
@if (ScrollY != null) {
@colGroup((this, true)) @header(this)
@colGroup((this, false)) @ChildContent(_fieldModel) @body((this, _showItems, 0)) @tfoot(this)
} else if (ScrollX != null) {
@colGroup((this, true)) @header(this) @ChildContent(_fieldModel) @body((this, _showItems, 0)) @tfoot(this)
} else {
@colGroup((this, true)) @header(this) @body((this, _showItems, 0)) @tfoot(this)
}
@if (FooterTemplate != null || Footer != null) { }
@if (!HidePagination && PaginationPosition.Contains("bottom")) { }
@code { RenderFragment> header = table => @; RenderFragment<(Table table, bool header)> colGroup = ctx => @; RenderFragment<(Table table, IEnumerable showItems, int level)> body = context => @; RenderFragment> tfoot = table =>@; }