Table of Contents

Class MultiSelectComponent<T, TListElement>

Namespace
Material.Blazor.Internal
Assembly
Material.Blazor.dll

A DRY inspired abstract class providing MBSelect<TItem> and MBRadioButtonGroup<TItem> with validation.

public abstract class MultiSelectComponent<T, TListElement> : InputComponent<IList<T>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TListElement : MBSelectElement<T>

Type Parameters

T
TListElement
Inheritance
MultiSelectComponent<T, TListElement>
Implements
Derived
Inherited Members

Constructors

MultiSelectComponent()

protected MultiSelectComponent()

Properties

GetKeysFunc

A function delegate to return the parameters for @key attributes. If unused "fake" keys set to GUIDs will be used.

[Parameter]
public Func<T, object> GetKeysFunc { get; set; }

Property Value

Func<T, object>

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

Items

The item list to be represented as radio buttons

[Parameter]
public IEnumerable<TListElement> Items { get; set; }

Property Value

IEnumerable<TListElement>

Methods

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