Table of Contents

Class HierarchyColumn<T>

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a column in a MudDataGrid<T> which can be expanded to show additional information.

public class HierarchyColumn<T> : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged

Type Parameters

T

The kind of item managed by the column.

Inheritance
HierarchyColumn<T>
Implements
Inherited Members
Extension Methods

Constructors

HierarchyColumn()

public HierarchyColumn()

Properties

ButtonDisabledFunc

The function which determines whether buttons are disabled.

[Parameter]
public Func<T, bool> ButtonDisabledFunc { get; set; }

Property Value

Func<T, bool>

ClosedIcon

The icon to display for the close button.

[Parameter]
public string ClosedIcon { get; set; }

Property Value

string

Remarks

Defaults to ChevronRight.

DragAndDropEnabled

Allows this column to be reordered via drag-and-drop operations.

[Parameter]
public bool? DragAndDropEnabled { get; set; }

Property Value

bool?

Remarks

Defaults to null. When set, this overrides the DragDropColumnReordering property.

Hidden

Hides this column.

[Parameter]
public bool Hidden { get; set; }

Property Value

bool

Remarks

Defaults to false.

HiddenChanged

Occurs when the Hidden property has changed.

[Parameter]
public EventCallback<bool> HiddenChanged { get; set; }

Property Value

EventCallback<bool>

Hideable

Allows this column to be hidden.

[Parameter]
public bool? Hideable { get; set; }

Property Value

bool?

Remarks

Defaults to null. When set, this overrides the Hideable property.

IconSize

The size of the open and close icons.

[Parameter]
public Size IconSize { get; set; }

Property Value

Size

InitiallyExpandedFunc

The function which determines whether the row should be initially expanded.

[Parameter]
public Func<T, bool> InitiallyExpandedFunc { get; set; }

Property Value

Func<T, bool>

Remarks

This function takes an item of type T as input and returns a boolean indicating whether the row should be expanded. Defaults to a function that always returns false.

OpenIcon

The icon to display for the open button.

[Parameter]
public string OpenIcon { get; set; }

Property Value

string

Remarks

Defaults to ExpandMore.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnAfterRenderAsync(bool)

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task

See Also