@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 { } } @code { [Parameter] public T DataContext { get; set; } #region Templates [Parameter] public RenderFragment Header { get; set; } [Parameter] public RenderFragment Row { get; set; } [Parameter] public RenderFragment Edit { get; set; } [Parameter] public RenderFragment Footer { get; set; } #endregion }