Class TableGroupDefinition<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A definition of a group within a MudTable<T>.
public class TableGroupDefinition<T>
Type Parameters
T
The type of item being grouped.
- Inheritance
-
TableGroupDefinition<T>
- Inherited Members
- Extension Methods
Constructors
TableGroupDefinition()
Creates a new instance.
public TableGroupDefinition()
TableGroupDefinition(Func<T, object>, TableGroupDefinition<T>?)
Creates a new instance.
public TableGroupDefinition(Func<T, object> selector, TableGroupDefinition<T>? innerGroup = null)
Parameters
selector
Func<T, object>The function which selects items for this group.
innerGroup
TableGroupDefinition<T>The group nested within this group.
Properties
Expandable
Allows this group to show or hide data rows.
public bool Expandable { get; set; }
Property Value
GroupName
The label for this group.
public string? GroupName { get; set; }
Property Value
Indentation
Indents the first column cell for this group and child groups.
public bool Indentation { get; set; }
Property Value
Remarks
When set, all child group definitions are also updated. Must be set for the first grouping level.
InnerGroup
The group definition within this definition.
public TableGroupDefinition<T>? InnerGroup { get; set; }
Property Value
IsInitiallyExpanded
Shows data rows for this group when the table is first displayed.
public bool IsInitiallyExpanded { get; set; }
Property Value
Remarks
Defaults to true
.
Selector
The function which selects items for this group.
public Func<T, object>? Selector { get; set; }
Property Value
Remarks
Typically used during a LINQ GroupBy()
call to group items.