|
1 | 1 | ---
|
2 | 2 | layout: post
|
3 | 3 | title: Methods in ##Platform_Name## TextArea control | Syncfusion
|
4 |
| -description: Handling methods in the ##Platform_Name## TextArea control of Syncfusion Essential JS 2 and more. |
| 4 | +description: Checkout and learn about methods in the ##Platform_Name## TextArea control of Syncfusion Essential JS 2 and more. |
5 | 5 | platform: ej2-asp-core-mvc
|
6 | 6 | control: Methods
|
7 | 7 | publishingplatform: ##Platform_Name##
|
8 | 8 | documentation: ug
|
9 | 9 | domainurl: ##DomainURL##
|
10 | 10 | ---
|
11 | 11 |
|
12 |
| -# Methods in ##Platform_Name## TextArea control |
| 12 | +# Methods in ##Platform_Name## TextArea Control |
13 | 13 |
|
14 | 14 | This section outlines the methods available for interacting with the TextArea control.
|
15 | 15 |
|
16 |
| -## focusIn |
| 16 | +## FocusIn method |
17 | 17 |
|
18 | 18 | The [focusIn](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Inputs.TextArea.html#Syncfusion_EJ2_Inputs_TextArea_focusIn) method in the TextArea, is used to set focus to the textarea element, enabling user interaction.
|
19 | 19 |
|
20 | 20 | By calling the `focusIn` method, you can programmatically set focus to the TextArea control, allowing users to interact with it via keyboard input or other means.
|
21 | 21 |
|
22 |
| -{% if page.publishingplatform == "typescript" %} |
| 22 | + |
| 23 | +{% if page.publishingplatform == "aspnet-core" %} |
23 | 24 |
|
24 | 25 | {% tabs %}
|
25 |
| -{% highlight ts tabtitle="index.ts" %} |
26 |
| -{% include code-snippet/textarea/methods-cs1/index.ts %} |
| 26 | +{% highlight cshtml tabtitle="CSHTML" %} |
| 27 | +{% include code-snippet/textarea/methods-cs1/tagHelper %} |
27 | 28 | {% endhighlight %}
|
28 |
| -{% highlight html tabtitle="index.html" %} |
29 |
| -{% include code-snippet/textarea/methods-cs1/index.html %} |
| 29 | +{% highlight c# tabtitle="Clear.cs" %} |
| 30 | +{% include code-snippet/textarea/methods-cs1/methods1.cs %} |
30 | 31 | {% endhighlight %}
|
31 | 32 | {% endtabs %}
|
32 | 33 |
|
33 |
| -{% previewsample "page.domainurl/code-snippet/textarea/methods-cs1" %} |
34 |
| - |
35 |
| -{% elsif page.publishingplatform == "javascript" %} |
| 34 | +{% elsif page.publishingplatform == "aspnet-mvc" %} |
36 | 35 |
|
37 | 36 | {% tabs %}
|
38 |
| -{% highlight js tabtitle="index.js" %} |
39 |
| -{% include code-snippet/textarea/methods-cs1/index.js %} |
| 37 | +{% highlight razor tabtitle="CSHTML" %} |
| 38 | +{% include code-snippet/textarea/methods-cs1/razor %} |
40 | 39 | {% endhighlight %}
|
41 |
| -{% highlight html tabtitle="index.html" %} |
42 |
| -{% include code-snippet/textarea/methods-cs1/index.html %} |
| 40 | +{% highlight c# tabtitle="Clear.cs" %} |
| 41 | +{% include code-snippet/textarea/methods-cs1/methods1.cs %} |
43 | 42 | {% endhighlight %}
|
44 | 43 | {% endtabs %}
|
45 |
| - |
46 | 44 | {% previewsample "page.domainurl/code-snippet/textarea/methods-cs1" %}
|
47 | 45 | {% endif %}
|
48 | 46 |
|
49 |
| -## focusOut |
| 47 | +## FocusOut method |
50 | 48 |
|
51 | 49 | The [focusOut](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Inputs.TextArea.html#Syncfusion_EJ2_Inputs_TextArea_focusOut) method in the TextArea control is used to remove focus from the textarea element, ending user interaction.
|
52 | 50 | This method is beneficial for scenarios where user need to programmatically remove focus from the TextArea control, such as after completing a specific task or when navigating to another element in the application.
|
53 | 51 |
|
54 |
| -{% if page.publishingplatform == "typescript" %} |
| 52 | +{% if page.publishingplatform == "aspnet-core" %} |
55 | 53 |
|
56 | 54 | {% tabs %}
|
57 |
| -{% highlight ts tabtitle="index.ts" %} |
58 |
| -{% include code-snippet/textarea/methods-cs2/index.ts %} |
| 55 | +{% highlight cshtml tabtitle="CSHTML" %} |
| 56 | +{% include code-snippet/textarea/methods-cs2/tagHelper %} |
59 | 57 | {% endhighlight %}
|
60 |
| -{% highlight html tabtitle="index.html" %} |
61 |
| -{% include code-snippet/textarea/methods-cs2/index.html %} |
| 58 | +{% highlight c# tabtitle="Clear.cs" %} |
| 59 | +{% include code-snippet/textarea/methods-cs2/methods2.cs %} |
62 | 60 | {% endhighlight %}
|
63 | 61 | {% endtabs %}
|
64 | 62 |
|
65 |
| -{% previewsample "page.domainurl/code-snippet/textarea/methods-cs2" %} |
66 |
| - |
67 |
| -{% elsif page.publishingplatform == "javascript" %} |
| 63 | +{% elsif page.publishingplatform == "aspnet-mvc" %} |
68 | 64 |
|
69 | 65 | {% tabs %}
|
70 |
| -{% highlight js tabtitle="index.js" %} |
71 |
| -{% include code-snippet/textarea/methods-cs2/index.js %} |
| 66 | +{% highlight razor tabtitle="CSHTML" %} |
| 67 | +{% include code-snippet/textarea/methods-cs2/razor %} |
72 | 68 | {% endhighlight %}
|
73 |
| -{% highlight html tabtitle="index.html" %} |
74 |
| -{% include code-snippet/textarea/methods-cs2/index.html %} |
| 69 | +{% highlight c# tabtitle="Clear.cs" %} |
| 70 | +{% include code-snippet/textarea/methods-cs2/methods2.cs %} |
75 | 71 | {% endhighlight %}
|
76 | 72 | {% endtabs %}
|
77 |
| - |
78 | 73 | {% previewsample "page.domainurl/code-snippet/textarea/methods-cs2" %}
|
79 | 74 | {% endif %}
|
80 | 75 |
|
81 |
| -## getPersistData |
| 76 | +## GetPersistData method |
82 | 77 |
|
83 | 78 | The [getPersistData](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Inputs.TextArea.html#Syncfusion_EJ2_Inputs_TextArea_getPersistData) method in the TextArea control retrieves the properties that need to be maintained in the persisted state.
|
84 | 79 | This method returns an object containing the properties to be persisted, which can include various configuration options and state information of the TextArea control.
|
85 | 80 |
|
86 |
| -{% if page.publishingplatform == "typescript" %} |
| 81 | + |
| 82 | +{% if page.publishingplatform == "aspnet-core" %} |
87 | 83 |
|
88 | 84 | {% tabs %}
|
89 |
| -{% highlight ts tabtitle="index.ts" %} |
90 |
| -{% include code-snippet/textarea/methods-cs3/index.ts %} |
| 85 | +{% highlight cshtml tabtitle="CSHTML" %} |
| 86 | +{% include code-snippet/textarea/methods-cs3/tagHelper %} |
91 | 87 | {% endhighlight %}
|
92 |
| -{% highlight html tabtitle="index.html" %} |
93 |
| -{% include code-snippet/textarea/methods-cs3/index.html %} |
| 88 | +{% highlight c# tabtitle="Clear.cs" %} |
| 89 | +{% include code-snippet/textarea/methods-cs3/methods3.cs %} |
94 | 90 | {% endhighlight %}
|
95 | 91 | {% endtabs %}
|
96 | 92 |
|
97 |
| -{% elsif page.publishingplatform == "javascript" %} |
| 93 | +{% elsif page.publishingplatform == "aspnet-mvc" %} |
98 | 94 |
|
99 | 95 | {% tabs %}
|
100 |
| -{% highlight js tabtitle="index.js" %} |
101 |
| -{% include code-snippet/textarea/methods-cs3/index.js %} |
| 96 | +{% highlight razor tabtitle="CSHTML" %} |
| 97 | +{% include code-snippet/textarea/methods-cs3/razor %} |
102 | 98 | {% endhighlight %}
|
103 |
| -{% highlight html tabtitle="index.html" %} |
104 |
| -{% include code-snippet/textarea/methods-cs3/index.html %} |
| 99 | +{% highlight c# tabtitle="Clear.cs" %} |
| 100 | +{% include code-snippet/textarea/methods-cs3/methods3.cs %} |
105 | 101 | {% endhighlight %}
|
106 | 102 | {% endtabs %}
|
107 |
| - |
| 103 | +{% previewsample "page.domainurl/code-snippet/textarea/methods-cs3" %} |
108 | 104 | {% endif %}
|
0 commit comments