Class MBAutocompleteTextField
An autocomplete built using an MBTextField with the anchor and drop down list implementation from a Material Theme select.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBAutocompleteTextField : InputComponent<string>, IDisposable
Properties
| Improve this Doc View SourceAllowBlankResult
Allow unmatched results.
Declaration
public bool AllowBlankResult { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
AllowCustomValue
When set, the value that the user enters does not have to match any of the selectable items.
Declaration
public bool AllowCustomValue { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Density
The autcomplete field's density.
Declaration
public MBDensity? Density { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBDensity> |
HelperText
Helper text that is displayed either with focus or persistently with HelperTextPersistent.
Declaration
public string HelperText { get; set; }
Property Value
Type | Description |
---|---|
String |
HelperTextPersistent
Makes the HelperText persistent if true.
Declaration
public bool HelperTextPersistent { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
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 |
IgnoreWhitespace
Ignores whitespace when searching the items list.
Declaration
public bool IgnoreWhitespace { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Label
Field 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 |
MatchFromItemStart
Forces the search string to match only from the start of each select item.
Declaration
public bool MatchFromItemStart { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SelectItems
List of items to select from.
Declaration
public IEnumerable<string> SelectItems { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
TextAlignStyle
The text alignment style.
Overrides TextAlignStyle
Declaration
public MBTextAlignStyle? TextAlignStyle { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBTextAlignStyle> |
TextInputStyle
The text input style.
Overrides TextInputStyle
Declaration
public MBTextInputStyle? TextInputStyle { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBTextInputStyle> |
TrailingIcon
The trailing icon's name. No leading icon shown if not set.
Declaration
public string TrailingIcon { get; set; }
Property Value
Type | Description |
---|---|
String |
ValidationMessageFor
Delivers Material Theme validation methods from native Blazor validation. Either use this or the Blazor
ValidationMessage
component, but not both. This parameter takes the same input as
ValidationMessage
's For
parameter.
Declaration
public Expression<Func<object>> ValidationMessageFor { get; set; }
Property Value
Type | Description |
---|---|
Expression<Func<Object>> |
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 SourceNotifyClosed()
For Material Theme to notify when the drop down is closed via JS Interop.
Declaration
public void NotifyClosed()
NotifySelected(String)
For Material Theme to notify of menu item selection via JS Interop.
Declaration
public void NotifySelected(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value |
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
OnParametersSetAsync()
Declaration
protected override async Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
Task |