@namespace Connected.Components @implements IDisposable @inherits UIComponent @typeparam T @*HEADER:*@ @if (HeaderTemplate != null && GroupDefinition != null) { @if ((GroupDefinition?.IsThisOrParentExpandable ?? false) || (Context?.Table.MultiSelection ?? false)) {
@if (GroupDefinition.Expandable) { } else { if (GroupDefinition?.IsParentExpandable ?? false) {
} } @if (IsCheckable) { }
} @HeaderTemplate(new TableGroupData(GroupDefinition.GroupName, Items.Key, Items.ToList())) @if ((Context?.Table.IsEditable ?? false)) { } } else { @("There aren't any group definition to use with this component.") } @if (IsExpanded) { @*CHILDREN:*@ @if (_innerGroupItems != null && GroupDefinition != null) { @foreach (var group in _innerGroupItems) { } } else { @Table?.RenderRows(Items, (GroupDefinition?.Indentation ?? false) ? $"mud-table-row-group-indented-{GroupDefinition?.Level - 1}" : null, GroupDefinition?.IsThisOrParentExpandable ?? false) } @*FOOTER:*@ @if (FooterTemplate != null && GroupDefinition != null) { @if ((GroupDefinition?.IsThisOrParentExpandable ?? false) || (Context?.Table.MultiSelection ?? false)) { } @FooterTemplate(new TableGroupData(GroupDefinition.GroupName, Items.Key, Items.ToList())) @if ((Context?.Table.IsEditable ?? false)) { } } }