Class TextArea
Inheritance
Namespace: Syncfusion.EJ2.Inputs
Assembly: Syncfusion.EJ2.dll
Syntax
public class TextArea : EJTagHelper
Constructors
TextArea()
Declaration
public TextArea()
Properties
Blur
Triggers when the TextArea has focus-out.
Declaration
public string Blur { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Change
Triggers when the content of TextArea has changed and gets focus-out.
Declaration
public string Change { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Cols
specifies the visible width of the textarea, measured in average character widths.
Declaration
public Nullable<int> Cols { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The default value is null |
Created
Triggers when the TextArea component is created.
Declaration
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CssClass
Specifies the CSS class value that is appended to wrapper of Textbox.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Destroyed
Triggers when the TextArea component is destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Enabled
Specifies a Boolean value that indicates whether the TextArea allow user to interact with it.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePersistence
Enable or disable persisting TextArea state between page reloads. If enabled, the value
state will be persisted.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
FloatLabelType
Specifies the floating label behavior of the TextArea that the placeholder text floats above the TextArea based on the below values.
Possible values are:
Never
- The placeholder text should not be float ever.
Always
- The placeholder text floats above the TextArea always.
Auto
- The placeholder text floats above the TextArea while focusing or enter a value in TextArea.
Declaration
public FloatLabelType FloatLabelType { get; set; }
Property Value
Type | Description |
---|---|
FloatLabelType | The default value is FloatLabelType.Never |
Focus
Triggers when the TextArea gets focus.
Declaration
public string Focus { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
For
Declaration
public override ModelExpression For { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression |
Overrides
HtmlAttributes
You can add the additional html attributes such as disabled, value etc., to the element. If you configured both property and equivalent html attribute then the component considers the property value.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Input
Triggers each time when the value of TextArea has changed.
Declaration
public string Input { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
MaxLength
Specifies the maximum number of characters allowed in TextArea.
Declaration
public Nullable<int> MaxLength { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The default value is null |
Placeholder
Specifies the text that is shown as a hint/placeholder until the user focus or enter a value in TextArea. The property is depending on the floatLabelType property.
Declaration
public string Placeholder { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Readonly
Specifies the boolean value whether the TextArea allows user to change the text.
Declaration
public bool Readonly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
ResizeMode
Specifies the resize mode of textarea.
possible values are:
Vertical
- The textarea element can be resized vertically.
Horizontal
- The textarea element can be resized horizontally.
Both
- The textarea element can be resized both vertically and horizontally.
None
- The textarea element cannot be resized.
Declaration
public Resize ResizeMode { get; set; }
Property Value
Type | Description |
---|---|
Resize | The default value is Resize.Both |
Rows
specifies the visible height of the textarea, measured in lines
Declaration
public Nullable<int> Rows { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The default value is null |
ShowClearButton
Specifies a Boolean value that indicates whether the clear button is displayed in TextArea.
Declaration
public bool ShowClearButton { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Value
Sets the content of the TextArea.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Width
Specifies the width of the TextArea component.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |