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
Classname
protected string Classname { get; }
Property Value
Expanded
Displays content within this panel.
[Parameter]
public bool Expanded { get; set; }
Property Value
Remarks
Defaults to false
.
ExpandedChanged
Occurs when the Expanded property has changed.
[Parameter]
public EventCallback<bool> ExpandedChanged { get; set; }
Property Value
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
Stylename
protected string Stylename { get; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder