ant-design-blazor/components/table/Column.razor
James Yeung 7e7d63aaec feat(module: table): add pagination and empty (#175)
* refactor: add ChildContent and title for column

* feat: add pagination and empty

* feat(module: table): add officeial demo

* fix: indent
2020-06-02 19:15:15 +08:00

24 lines
363 B
C#

@namespace AntDesign
@inherits AntComponentBase
@typeparam TItem
@if (IsHeader)
{
<th class="ant-table-cell">@(Title??DisplayName??FieldName)</th>
}
else
{
@if (CellRender != null)
{
<td>@CellRender(Field)</td>
}
else if (ChildContent != null)
{
<td>@ChildContent</td>
}
else
{
<td>@Field</td>
}
}