Table of Contents

Class MBTextArea

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

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

int

Density

The text area's density.

[Parameter]
public MBDensity? Density { get; set; }

Property Value

MBDensity?

HelperText

Helper text that is displayed either with focus or persistently with HelperTextPersistent.

[Parameter]
public string HelperText { get; set; }

Property Value

string

HelperTextPersistent

Makes the HelperText persistent if true.

[Parameter]
public bool HelperTextPersistent { get; set; }

Property Value

bool

Label

Field label.

[Parameter]
public string Label { get; set; }

Property Value

string

Rows

The number of rows to show when first rendered.

[Parameter]
public int Rows { get; set; }

Property Value

int

TextAlignStyle

The text alignment style.

Overrides TextAlignStyle

[Parameter]
public MBTextAlignStyle? TextAlignStyle { get; set; }

Property Value

MBTextAlignStyle?

TextInputStyle

The text input style.

Overrides TextInputStyle

[Parameter]
public MBTextInputStyle? TextInputStyle { get; set; }

Property Value

MBTextInputStyle?

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

Expression<Func<object>>

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

ElementReference

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

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