Class MBTextArea
A Material Theme text field.
public class MBTextArea : InputComponent<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBTextArea
- Implements
- Inherited Members
Constructors
MBTextArea()
public MBTextArea()
Properties
Cols
The number of columns to show when first rendered.
[Parameter]
public int Cols { get; set; }
Property Value
Density
The text area's density.
[Parameter]
public MBDensity? Density { get; set; }
Property Value
HelperText
Helper text that is displayed either with focus or persistently with HelperTextPersistent.
[Parameter]
public string HelperText { get; set; }
Property Value
HelperTextPersistent
Makes the HelperText persistent if true.
[Parameter]
public bool HelperTextPersistent { get; set; }
Property Value
Label
Field label.
[Parameter]
public string Label { get; set; }
Property Value
Rows
The number of rows to show when first rendered.
[Parameter]
public int Rows { get; set; }
Property Value
TextAlignStyle
The text alignment style.
Overrides TextAlignStyle
[Parameter]
public MBTextAlignStyle? TextAlignStyle { get; set; }
Property Value
TextInputStyle
The text input style.
Overrides TextInputStyle
[Parameter]
public MBTextInputStyle? TextInputStyle { get; set; }
Property Value
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.
[Parameter]
public Expression<Func<object>> ValidationMessageFor { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
GetTextAreaReference()
Returns an ElementReference for the control's text area reference element.
public ElementReference GetTextAreaReference()
Returns
OnInitializedAsync()
protected override Task OnInitializedAsync()
Returns
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()