Table of Contents

Class MudCollapse

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a container for content which can be collapsed and expanded.

public class MudCollapse : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudCollapse
Implements
Inherited Members
Extension Methods

Constructors

MudCollapse()

public MudCollapse()

Properties

ChildContent

The content within this panel.

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Expanded

Displays content within this panel.

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

Property Value

bool

Remarks

Defaults to false.

ExpandedChanged

Occurs when the Expanded property has changed.

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

Property Value

EventCallback<bool>

MaxHeight

The maximum allowed height of this panel, in pixels.

[Parameter]
public int? MaxHeight { get; set; }

Property Value

int?

Remarks

Defaults to null.

OnAnimationEnd

Occurs when the collapse or expand animation has finished.

[Parameter]
public EventCallback OnAnimationEnd { get; set; }

Property Value

EventCallback

Stylename

protected string Stylename { get; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

See Also