Class MBTextField
A Material Theme text field.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBTextField : InputComponent<string>, IDisposable
Properties
| Improve this Doc View SourceDensity
The text 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 |
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 |
Prefix
Prefix text.
Declaration
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
String |
Suffix
Suffix text.
Declaration
public string Suffix { get; set; }
Property Value
Type | Description |
---|---|
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 SourceOnDisabledSetCallback()
Callback for value the Disabled value setter.
Declaration
protected void OnDisabledSetCallback()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
OnValueSetCallback()
Callback for value the value setter.
Declaration
protected void OnValueSetCallback()