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/AvatarColumn.razor

25 lines
434 B

2 years ago
@typeparam T
@namespace Connected.Components
@inherits ColumnBase
@if (Visible)
{
@if (Mode == Rendermode.Header)
{
<Th>@HeaderText</Th>
}
else if (Mode is Rendermode.Item or Rendermode.Edit)
{
<Td><Avatar Size="Size.Small">@Value.ToString()</Avatar></Td>
}
else if (Mode == Rendermode.Footer)
{
<Td></Td>
}
}
@code {
[Parameter]
public T Value { get; set; }
}