Class MBSelect<TItem>
A Material Theme select.
Inheritance
InputComponent<TItem>
SingleSelectComponent<TItem, MBSelectElement<TItem>>
MBSelect<TItem>
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBSelect<TItem> : SingleSelectComponent<TItem, MBSelectElement<TItem>>, IDisposable
Type Parameters
Name | Description |
---|---|
TItem |
Properties
| Improve this Doc View SourceDensity
The select's density.
Declaration
public MBDensity? Density { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBDensity> |
IconFoundry
The foundry to use for both leading and trailing icons.
IconFoundry="IconHelper.MIIcon()"
IconFoundry="IconHelper.FAIcon()"
IconFoundry="IconHelper.OIIcon()"
Overrides IconFoundryName
Declaration
public IMBIconFoundry IconFoundry { get; set; }
Property Value
Type | Description |
---|---|
IMBIconFoundry |
Label
The select's label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
String |
LeadingIcon
The leading icon's name. No leading icon shown if not set.
Declaration
public string LeadingIcon { get; set; }
Property Value
Type | Description |
---|---|
String |
MenuSurfacePositioning
Regular, fullwidth or fixed positioning/width.
Declaration
public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; }
Property Value
Type | Description |
---|---|
MBMenuSurfacePositioning |
SelectInputStyle
The select's MBSelectInputStyle.
Overrides SelectInputStyle
Declaration
public MBSelectInputStyle? SelectInputStyle { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBSelectInputStyle> |
TextAlignStyle
The select's MBTextAlignStyle.
Overrides TextAlignStyle
Declaration
public MBTextAlignStyle? TextAlignStyle { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBTextAlignStyle> |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
Overrides
| Improve this Doc View SourceNotifySelected(Int32)
For Material Theme to notify of menu item selection via JS Interop.
Declaration
public void NotifySelected(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
OnDisabledSetCallback()
Callback for value the Disabled value setter.
Declaration
protected void OnDisabledSetCallback()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<TItem>.OnInitializedAsync()
|
Improve this Doc
View Source
OnParametersSetAsync()
Declaration
protected override async Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<TItem>.OnParametersSetAsync()
|
Improve this Doc
View Source
OnValueSetCallback()
Callback for value the value setter.
Declaration
protected void OnValueSetCallback()