Table of Contents

Class MudNavGroup

Namespace
MudBlazor
Assembly
MudBlazor.dll
public class MudNavGroup : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudNavGroup
Implements
Inherited Members
Extension Methods

Constructors

MudNavGroup()

public MudNavGroup()

Properties

ButtonClassname

protected string ButtonClassname { get; }

Property Value

string

ButtonTabIndex

protected int ButtonTabIndex { get; }

Property Value

int

ChildContent

[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Disabled

If true, the button will be disabled.

[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }

Property Value

bool

ExpandIcon

If set, overrides the default expand icon.

[Parameter]
[Category("Appearance")]
public string ExpandIcon { get; set; }

Property Value

string

ExpandIconClassname

protected string ExpandIconClassname { get; }

Property Value

string

Expanded

If true, expands the nav group, otherwise collapse it. Two-way bindable

[Parameter]
[Category("Behavior")]
public bool Expanded { get; set; }

Property Value

bool

ExpandedChanged

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

Property Value

EventCallback<bool>

HideExpandIcon

If true, hides expand-icon at the end of the NavGroup.

[Parameter]
[Category("Appearance")]
public bool HideExpandIcon { get; set; }

Property Value

bool

Icon

Icon to use if set.

[Parameter]
[Category("Behavior")]
public string? Icon { get; set; }

Property Value

string

IconClassname

protected string IconClassname { get; }

Property Value

string

IconColor

The color of the icon. It supports the theme colors, default value uses the themes drawer icon color.

[Parameter]
[Category("Appearance")]
public Color IconColor { get; set; }

Property Value

Color

MaxHeight

Explicitly sets the height for the Collapse element to override the css default.

[Parameter]
[Category("Appearance")]
public int? MaxHeight { get; set; }

Property Value

int?

Ripple

Gets or sets whether to show a ripple effect when the user clicks the button. Default is true.

[Parameter]
[Category("Appearance")]
public bool Ripple { get; set; }

Property Value

bool

Title

[Parameter]
[Category("Behavior")]
public string? Title { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnInitialized()

protected override void OnInitialized()