Table of Contents

Class MudBaseSelectItem

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a base class for designing selection items.

public abstract class MudBaseSelectItem : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudBaseSelectItem
Implements
Derived
Inherited Members
Extension Methods

Constructors

MudBaseSelectItem()

protected MudBaseSelectItem()

Properties

ChildContent

The content within this item.

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

Property Value

RenderFragment

Disabled

Prevents the user from interacting with this item.

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

Property Value

bool

ForceLoad

Performs a full page load during navigation.

[Parameter]
[Category("Click action")]
public bool ForceLoad { get; set; }

Property Value

bool

Remarks

Defaults to false. When true, client-side routing is bypassed and the browser is forced to load the new page from the server.

Href

The URL to navigate to when this item is clicked.

[Parameter]
[Category("Click action")]
public string? Href { get; set; }

Property Value

string

OnClick

Occurs when the item has been clicked.

[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }

Property Value

EventCallback<MouseEventArgs>

Remarks

This event only occurs when the Href property is not set.

Ripple

Shows a ripple effect when the user clicks the button.

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

Property Value

bool

Remarks

Defaults to true.

Methods

OnClickHandler(MouseEventArgs)

protected Task OnClickHandler(MouseEventArgs ev)

Parameters

ev MouseEventArgs

Returns

Task