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.
37 lines
851 B
37 lines
851 B
2 years ago
|
@namespace Connected.Components
|
||
|
@typeparam T
|
||
|
@inherits ColumnBase
|
||
|
@if (Visible)
|
||
|
{
|
||
|
@if (Mode == Rendermode.Header && Header!= null)
|
||
|
{
|
||
|
@Header(DataContext)
|
||
|
}
|
||
|
else if (Mode == Rendermode.Item && Row != null)
|
||
|
{
|
||
|
@Row(DataContext)
|
||
|
}
|
||
|
else if (Mode == Rendermode.Edit && Edit != null)
|
||
|
{
|
||
|
@Edit(DataContext)
|
||
|
}
|
||
|
else if (Mode == Rendermode.Footer && Footer != null)
|
||
|
{
|
||
|
@Footer(DataContext)
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<MudTd></MudTd>
|
||
|
}
|
||
|
}
|
||
|
@code {
|
||
|
|
||
|
[Parameter] public T DataContext { get; set; }
|
||
|
#region Templates
|
||
|
[Parameter] public RenderFragment<T> Header { get; set; }
|
||
|
[Parameter] public RenderFragment<T> Row { get; set; }
|
||
|
[Parameter] public RenderFragment<T> Edit { get; set; }
|
||
|
[Parameter] public RenderFragment<T> Footer { get; set; }
|
||
|
#endregion
|
||
|
}
|