Table of Contents

Class MBSelect<TItem>

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

A Material Theme select.

public class MBSelect<TItem> : SingleSelectComponent<TItem, MBSelectElement<TItem>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Type Parameters

TItem
Inheritance
MBSelect<TItem>
Implements
Inherited Members

Constructors

MBSelect()

public MBSelect()

Properties

BadgeExited

When true collapses the badge.

[Parameter]
public bool BadgeExited { get; set; }

Property Value

bool

BadgeStyle

The badge's style - see MBBadgeStyle, defaults to ValueBearing.

[Parameter]
public MBBadgeStyle BadgeStyle { get; set; }

Property Value

MBBadgeStyle

BadgeValue

The button's density.

[Parameter]
public string BadgeValue { get; set; }

Property Value

string

Density

The select's density.

[Parameter]
public MBDensity? Density { get; set; }

Property Value

MBDensity?

HasBadge

Determines whether the button has a badge - defaults to false.

[Parameter]
public bool HasBadge { get; set; }

Property Value

bool

IconFoundry

The foundry to use for both leading and trailing icons.

IconFoundry="IconHelper.MIIcon()"

IconFoundry="IconHelper.FAIcon()"

IconFoundry="IconHelper.OIIcon()"

Overrides IconFoundryName

[Parameter]
public IMBIconFoundry? IconFoundry { get; set; }

Property Value

IMBIconFoundry

Label

The select's label.

[Parameter]
public string Label { get; set; }

Property Value

string

LeadingIcon

The leading icon's name. No leading icon shown if not set.

[Parameter]
public string? LeadingIcon { get; set; }

Property Value

string

MenuSurfacePositioning

Regular, fullwidth or fixed positioning/width.

[Parameter]
public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; }

Property Value

MBMenuSurfacePositioning

SelectInputStyle

The select's MBSelectInputStyle.

Overrides SelectInputStyle

[Parameter]
public MBSelectInputStyle? SelectInputStyle { get; set; }

Property Value

MBSelectInputStyle?

TextAlignStyle

The select's MBTextAlignStyle.

Overrides TextAlignStyle

[Parameter]
public MBTextAlignStyle? TextAlignStyle { get; set; }

Property Value

MBTextAlignStyle?

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

NotifySelected(int)

For Material Theme to notify of menu item selection via JS Interop.

[JSInvokable]
public void NotifySelected(int index)

Parameters

index int

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

OnParametersSetAsync()

When overriding this, call await base.OnParametersSetAsync(); before any user code unless there is a very good reason not to.

protected override Task OnParametersSetAsync()

Returns

Task