You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/form/api/input/input_gettext_method.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,18 @@ description: You can explore the getText method of the Input control of Form in
14
14
A string with the text with the applied mask
15
15
16
16
@example:
17
-
const value = form.getItem("input").getText();
18
-
// -> "100000.01"
17
+
const input = form.getItem("input");
18
+
input.setValue(1000.01);
19
+
20
+
input.getValue(); // 1000.01 for the input type number
21
+
input.getValue(); // "1000.01" for the input type string
22
+
23
+
input.getText(); // "1,000.01" with the applied numberMask/patternMask
19
24
20
25
@descr:
21
26
The method is used with the [`numberMask`](form/work_with_form.md#numbermask) and [`patternMask`](form/work_with_form.md#patternmask) properties of the Input control. It allows getting the value with the applied mask.
22
27
23
28
@changelog:
24
29
Added in v9.0
25
30
26
-
**Related:**[Getting the text value of an input](form/work_with_form.md#getting-the-text-value-of-an-input)
31
+
**Related:**[Getting the text value of an input](form/work_with_form.md#getting-the-text-value-of-an-input-or-a-textarea)
description: You can explore the getText method of the Textarea control of Form in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# getText()
8
+
9
+
@short: returns the text value of the textarea with the applied mask
10
+
11
+
@signature: {'getText(): string;'}
12
+
13
+
@returns:
14
+
A string with the text with the applied mask
15
+
16
+
@example:
17
+
const input = form.getItem("textarea");
18
+
input.setValue(1000.01);
19
+
20
+
input.getValue(); // 1000.01 for the input type number
21
+
input.getValue(); // "1000.01" for the input type string
22
+
23
+
input.getText(); // "1,000.01" with the applied numberMask/patternMask
24
+
25
+
@descr:
26
+
The method is used with the [`numberMask`](form/work_with_form.md#numbermask) and [`patternMask`](form/work_with_form.md#patternmask) properties of the Textarea control. It allows getting the value with the applied mask.
27
+
28
+
@changelog:
29
+
Added in v9.0
30
+
31
+
**Related:**[Getting the text value of a textarea](form/work_with_form.md#getting-the-text-value-of-an-input-or-a-textarea)
Copy file name to clipboardExpand all lines: docs/form/features.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ In this section you will study how to send a Form to the server, how to disable
103
103
|[Is disabled](../work_with_form/#checking-if-a-form-is-disabled)| Learn how to check whether a Form or its control is disabled ([Example](https://snippet.dhtmlx.com/lthu8p6p)) |
104
104
|[Hiding / showing Form](../work_with_form/#hidingshowing-a-form)| Learn how to hide/show a Form |
105
105
|[Checking visibility of a Form](../work_with_form/#checking-if-a-form-is-visible)| Learn how to check whether a Form or its control is visible |
106
+
|[Using input masks](../work_with_form/#using-input-masks)| Learn how to use pattern and input masks to provide entering of values in a predefined way ([Example 1](https://snippet.dhtmlx.com/51wnauq3), [Example 2](https://snippet.dhtmlx.com/gu1ekt1z)) |
106
107
|[Clearing Form](../work_with_form/#clearing-form)| Learn how to clear the values and (or) validation of Form ([Example](https://snippet.dhtmlx.com/a64ih4ih)) |
The input masks are used to provide entering of values into the [**Input**](form/input.md) and [**Textarea**](form/textarea.md) Form controls in a predefined way. There are the [`numberMask`](#numbermask) and [`patternMask`](#patternmask) configuration options in the API of the Input and Textarea controls, and the [`getText()`](#getting-the-text-value-of-an-input) method in the Input control API which are used for working with input masks.
110
+
The input masks are used to provide entering of values into the [**Input**](form/input.md) and [**Textarea**](form/textarea.md) Form controls in a predefined way. There are the [`numberMask`](#numbermask) and [`patternMask`](#patternmask) configuration options in the API of the Input and Textarea controls, and the [`getText()`](#getting-the-text-value-of-an-input-or-a-textarea) method in the Input control API which are used for working with input masks.
### Getting the text value of an input or a textarea
323
323
324
-
When you need to get the value of an input with the applied mask, you can use the [`getText()`](form/api/input/input_gettext_method.md) method of the **Input** control.
325
-
It returns the input value of the control as a string. The method is used with the `numberMask` and `patternMask` properties of the Input control.
324
+
When you need to get the value of an input or a textarea with the applied mask, you can use the [`getText()`](form/api/input/input_gettext_method.md) method of the **Input** control or the [`getText()`](form/api/textarea/textarea_gettext_method.md) method of the **Textarea** control.
325
+
It returns the input value of the control as a string. The method is used with the `numberMask` and `patternMask` properties of the control.
326
326
327
327
~~~jsx
328
-
constvalue=form.getItem("input").getText();
329
-
// -> "100000.01"
328
+
constinput=form.getItem("input");
329
+
input.setValue(1000.01);
330
+
331
+
input.getValue(); // 1000.01 for the input type number
332
+
input.getValue(); // "1000.01" for the input type string
333
+
334
+
input.getText(); // "1,000.01" with the applied numberMask/patternMask
Copy file name to clipboardExpand all lines: docs/grid/api/grid_group_config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ You can find the detailed description of the `group` object properties with exam
62
62
- if set to *false*, the rows that don't suit the grouping criteria won't be rendered
63
63
-`fields` - (optional) predefines an extended configuration for data grouping by certain columns, by setting the rules of aggregation and rendering of the results. The attributes of the `fields` object correspond to the ids of columns for which the aggregation rules and the order of results are being configured. The configuration of a column is defined by the `IGroupOrder` object that has the following properties:
64
64
-`map` - (optional) an object for data aggregation in a group, where the keys are field names, and the values can be:
65
-
- a tuple `[string, TAggregate]` that specifies the field and the aggregation type ("sum", "count", "min", "max", "avg") from the `dhx.methods` helper
65
+
- a tuple `[string, TAggregate]` that specifies the field and the aggregation type ("sum", "count", "min", "max", "avg") from the [`dhx.methods`](helpers/data_calculation_functions.md) helper
66
66
- a user-defined aggregation function `((row: IRow[]) => string | number)`
67
67
-`summary` - (optional) specifies where the total row is rendered - at the `top` or at the `bottom` of the group
68
68
-`order` - (optional) defines the order of grouping by setting the sequence of columns for grouping. The elements of the `order` array can be:
0 commit comments