Class MudNavGroup
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A deeper level of navigation links as part of a MudNavMenu.
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
ButtonTabIndex
protected int ButtonTabIndex { get; }
Property Value
ChildContent
The content within this group.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Remarks
Typically contains MudNavGroup and MudNavLink components.
Classname
protected string Classname { get; }
Property Value
Disabled
Prevents the user from interacting with this group.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
Remarks
Defaults to false
.
ExpandIcon
The icon for expanding and collapsing this group.
[Parameter]
[Category("Appearance")]
public string ExpandIcon { get; set; }
Property Value
Remarks
Defaults to ArrowDropDown. Only shows when HideExpandIcon is false
.
ExpandIconClassname
protected string ExpandIconClassname { get; }
Property Value
Expanded
Displays the items within this group.
[Parameter]
[Category("Behavior")]
public bool Expanded { get; set; }
Property Value
Remarks
Defaults to false
. When this value changes, ExpandedChanged occurs. Can be bound via @bind-Expanded
.
ExpandedChanged
Occurs when Expanded has changed.
[Parameter]
public EventCallback<bool> ExpandedChanged { get; set; }
Property Value
HeaderClass
The CSS classes applied to this nav group title.
[Parameter]
[Category("Appearance")]
public string? HeaderClass { get; set; }
Property Value
Remarks
Defaults to null
. You can use spaces to separate multiple classes.
HideExpandIcon
Hides the expand/collapse icon.
[Parameter]
[Category("Appearance")]
public bool HideExpandIcon { get; set; }
Property Value
Remarks
Defaults to false
.
Icon
The icon displayed next to the Title.
[Parameter]
[Category("Behavior")]
public string? Icon { get; set; }
Property Value
Remarks
Defaults to null
.
IconClassname
protected string IconClassname { get; }
Property Value
IconColor
The color of the icon when Icon is set.
[Parameter]
[Category("Appearance")]
public Color IconColor { get; set; }
Property Value
Remarks
Defaults to Default.
MaxHeight
The maximum height, in pixels, of this group.
[Parameter]
[Category("Appearance")]
public int? MaxHeight { get; set; }
Property Value
- int?
Remarks
Defaults to null
. When set, it will override the CSS default.
Ripple
Shows a ripple effect when the user clicks this group.
[Parameter]
[Category("Appearance")]
public bool Ripple { get; set; }
Property Value
Remarks
Defaults to true
.
Title
The text shown for this group.
[Parameter]
[Category("Behavior")]
public string? Title { get; set; }
Property Value
TitleContent
The content within the title area.
[Parameter]
[Category("Behavior")]
public RenderFragment? TitleContent { get; set; }
Property Value
Remarks
Defaults to null
. When set, overrides the Title property.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnInitialized()
protected override void OnInitialized()