Class MudSelectItem<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A selectable option displayed within a MudSelect<T> component.
public class MudSelectItem<T> : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable
Type Parameters
T
The type of value linked to this item. Must be the same type as the parent MudSelect<T>.
- Inheritance
-
MudSelectItem<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
MudSelectItem()
public MudSelectItem()
Properties
CheckBoxIcon
The icon to display whether this item is selected.
protected string? CheckBoxIcon { get; }
Property Value
Remarks
When MudBlazor.MudSelectItem`1.Selected is true
, CheckBox is returned. Otherwise, CheckBoxOutlineBlank.
ChildContent
The custom content within this item.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Disabled
Prevents the user from interacting with this item.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
Remarks
Defaults to false
.
DisplayString
protected string? DisplayString { get; }
Property Value
MultiSelection
Whether multi-selection is enabled in the parent MudSelect<T>.
protected bool MultiSelection { get; }
Property Value
Value
The custom value associated with this item.
[Parameter]
[Category("Behavior")]
public T? Value { get; set; }
Property Value
- T
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose()
Releases resources used by this component.
public void Dispose()
See Also
MudSelect<T>