You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Table/TableColumn.razor

35 lines
746 B

2 years ago
@namespace Connected.Components
@typeparam T
@inherits ColumnBase
@if (Visible)
{
@if (Mode == Rendermode.Header)
{
<Th>@HeaderText</Th>
}
else if (Mode == Rendermode.Item || (ReadOnly && Mode == Rendermode.Edit))
{
<Td DataLabel="@HeaderText">@GetFormattedString(Value)</Td>
}
else if (Mode == Rendermode.Edit)
{
<Td DataLabel="@HeaderText"><TextField @bind-Value="InternalValue" /></Td>
}
else if (Mode == Rendermode.Footer)
{
@if (_footerValueAvailable)
{
<Td>
@GetFormattedString(FooterValue)
</Td>
}
else
{
<Td>
@FooterText
</Td>
}
}
}