Class
TelerikTextArea

The Telerik TextArea component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikTextArea : TextBoxBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>TextBoxBaseTelerikTextArea

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TextBoxBase.OnParametersSetAsync()TextBoxBase.Dispose()TextBoxBase.InitJsComponentAsync()TextBoxBase.OnParametersSetInternalAsync()TextBoxBase.OnAfterRenderInternalAsync(bool)TextBoxBase.UpdateValueDebounced(string)TextBoxBase.TitleTextBoxBase.PlaceholderTextBoxBase.DataSmartPasteDescriptionAttributeTextBoxBase.WidthTextBoxBase.NameTextBoxBase.DebounceDelayTextBoxBase.ReadOnlyTextBoxBase.AutoCapitalizeTextBoxBase.SpellCheckTelerikInputBase<string>.OnInitializedAsync()TelerikInputBase<string>.FocusAsync()TelerikInputBase<string>.CascadedEditContextTelerikInputBase<string>.FloatingLabelTelerikInputBase<string>.IdTelerikInputBase<string>.EnabledTelerikInputBase<string>.TabIndexTelerikInputBase<string>.ValueExpressionTelerikInputBase<string>.ValueChangedTelerikInputBase<string>.ValueTelerikInputBase<string>.OnChangeTelerikInputBase<string>.OnBlurTelerikInputBase<string>.AriaLabelTelerikInputBase<string>.AriaLabelledByTelerikInputBase<string>.AriaDescribedByTelerikInputBase<string>.ValidateOnTelerikInputBase<string>.InputModeBaseComponent.ShouldRender()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)

Constructors

TelerikTextArea()

Declaration

cs-api-definition
public TelerikTextArea()

Properties

AdornmentsFlow

Specifies the positioning of the elements (adornments) in the prefix and suffix templates of the TelerikTextArea component. The possible values are: Horizontal (default) - the elements within the prefix and suffix templates will be ordered in a row. Vertical - the elements within the prefix and suffix templates will be ordered in a column.

Declaration

cs-api-definition
[Parameter]
public TextAreaAdornmentsFlow AdornmentsFlow { get; set; }

Property Value

TextAreaAdornmentsFlow

AdornmentsOrientation

Specifies the flow of the prefix and suffix templates of the TelerikTextArea component. The possible values are: Horizontal (default) - the prefix and suffix templates will be arranged in a row, with the text area positioned between them. Vertical - the prefix and suffix templates will be arranged in a column, with the text area positioned between them.

Declaration

cs-api-definition
[Parameter]
public TextAreaAdornmentsOrientation AdornmentsOrientation { get; set; }

Property Value

TextAreaAdornmentsOrientation

AutoComplete

[Accessibility] Defines the autocomplete HTML attribute of the component.

Declaration

cs-api-definition
[Parameter]
public string AutoComplete { get; set; }

Property Value

string

Cols

Sets the cols attribute of the textarea.

Declaration

cs-api-definition
[Parameter]
public int? Cols { get; set; }

Property Value

int?

EnableWebMcpTools

Enables WebMCP tool registration for this TextArea. When true, TextArea operations are exposed as tools discoverable by AI models through the browser. Default value is false.

Declaration

cs-api-definition
[Parameter]
public bool EnableWebMcpTools { get; set; }

Property Value

bool

FillMode

Specifies the fill mode of the TextArea.

Declaration

cs-api-definition
[Parameter]
public override string FillMode { get; set; }

Property Value

string

Overrides TextBoxBase.FillMode

MaxLength

Sets the maxlength attribute of the textarea.

Declaration

cs-api-definition
[Parameter]
public int? MaxLength { get; set; }

Property Value

int?

ResizeMode

Specifies the TextArea's resize behavior. Default behavior is the one set by the browser.

Declaration

cs-api-definition
[Parameter]
public TextAreaResizeMode? ResizeMode { get; set; }

Property Value

TextAreaResizeMode?

Rounded

Specifies the roundness of the TextArea.

Declaration

cs-api-definition
[Parameter]
public override string Rounded { get; set; }

Property Value

string

Overrides TextBoxBase.Rounded

Rows

Sets the rows attribute of the textarea.

Declaration

cs-api-definition
[Parameter]
public int? Rows { get; set; }

Property Value

int?

ShowPrefixSeparator

Defines whether the prefix separator should be shown. The default value is true.

Declaration

cs-api-definition
[Parameter]
public bool ShowPrefixSeparator { get; set; }

Property Value

bool

ShowSuffixSeparator

Defines whether the suffix separator should be shown. The default value is true.

Declaration

cs-api-definition
[Parameter]
public bool ShowSuffixSeparator { get; set; }

Property Value

bool

Size

Specifies the Size of the text TextArea.

Declaration

cs-api-definition
[Parameter]
public override string Size { get; set; }

Property Value

string

Overrides TextBoxBase.Size

TextAreaPrefixTemplate

The content of the TextArea prefix.

Declaration

cs-api-definition
[Parameter]
public RenderFragment TextAreaPrefixTemplate { get; set; }

Property Value

RenderFragment

TextAreaSettings

Provides configuration for WebMCP tools, such as a Name to distinguish this TextArea from others on the same page.

Declaration

cs-api-definition
[Parameter]
public RenderFragment TextAreaSettings { get; set; }

Property Value

RenderFragment

TextAreaSuffixTemplate

The content of the TextArea suffix.

Declaration

cs-api-definition
[Parameter]
public RenderFragment TextAreaSuffixTemplate { get; set; }

Property Value

RenderFragment

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRenderAsync(bool)

Declaration

cs-api-definition
protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides TextBoxBase.OnAfterRenderAsync(bool)

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides TelerikInputBase<string>.SetParametersAsync(ParameterView)