Class MudTableGroupRow<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A grouping of values for a column in a MudTable<T>.
public class MudTableGroupRow<T> : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable
Type Parameters
T
The type of item being grouped.
- Inheritance
-
MudTableGroupRow<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
MudTableGroupRow()
public MudTableGroupRow()
Properties
ActionsStylename
protected string ActionsStylename { get; }
Property Value
Checkable
Displays a checkbox which selects or unselects all items within this group.
[Parameter]
public bool Checkable { get; set; }
Property Value
Remarks
Defaults to false
.
Checked
Selects the checkbox for this group's header.
public bool? Checked { get; set; }
Property Value
- bool?
Remarks
Only has an effect when Checkable is true
.
CollapseIcon
The icon of the collapse button when Expandable is true
.
[Parameter]
public string CollapseIcon { get; set; }
Property Value
Remarks
Defaults to ChevronRight.
Context
The current state of the MudTable<T> containing this group.
[CascadingParameter]
public TableContext? Context { get; set; }
Property Value
ExpandIcon
The icon of the expand button when Expandable is true
.
[Parameter]
public string ExpandIcon { get; set; }
Property Value
Remarks
Defaults to ExpandMore.
Expanded
Shows the items in this group.
public bool Expanded { get; }
Property Value
Remarks
Defaults to true
.
FooterClass
The CSS classes applied to this group's footer.
[Parameter]
public string? FooterClass { get; set; }
Property Value
Remarks
Multiple classes must be separated by spaces.
FooterClassname
protected string FooterClassname { get; }
Property Value
FooterStyle
The CSS styles applied to this group's footer.
[Parameter]
public string? FooterStyle { get; set; }
Property Value
FooterTemplate
The custom content for this group's footer.
[Parameter]
public RenderFragment<TableGroupData<object, T>>? FooterTemplate { get; set; }
Property Value
GroupDefinition
The definition for this grouping level.
[Parameter]
public TableGroupDefinition<T>? GroupDefinition { get; set; }
Property Value
Remarks
Group definitions can be recursive.
HeaderClass
The CSS classes applied to this group's header.
[Parameter]
public string? HeaderClass { get; set; }
Property Value
Remarks
Multiple classes must be separated by spaces.
HeaderClassname
protected string HeaderClassname { get; }
Property Value
HeaderStyle
The CSS styles applied to this group's header.
[Parameter]
public string? HeaderStyle { get; set; }
Property Value
HeaderTemplate
The custom content for this group's header.
[Parameter]
public RenderFragment<TableGroupData<object, T>>? HeaderTemplate { get; set; }
Property Value
Items
The groups and items within this grouping.
[Parameter]
public IGrouping<object, T>? Items { get; set; }
Property Value
OnRowClick
Occurs when a grouping row is clicked.
[Parameter]
public EventCallback<MouseEventArgs> OnRowClick { get; set; }
Property Value
SelectionChangeable
Prevents the change of the current selection of all items withing this group.
[Parameter]
public bool SelectionChangeable { get; set; }
Property Value
Remarks
Defaults to true
. Requires Checkable to be true
.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose()
Releases resources used by this group row.
public void Dispose()
OnInitializedAsync()
protected override Task OnInitializedAsync()
Returns
SetChecked(bool?, bool)
Sets the Checked value and optionally refreshes this group.
public void SetChecked(bool? checkedState, bool notify)