getText()
returns the text value of the textarea with the applied mask
getText(): string;
Returns:
A string with the text with the applied mask
Example
const input = form.getItem("textarea");
input.setValue(1000.01);
input.getValue(); // 1000.01 for the input type number
input.getValue(); // "1000.01" for the input type string
input.getText(); // "1,000.01" with the applied numberMask/patternMask
The method is used with the numberMask
and patternMask
properties of the Textarea control. It allows getting the value with the applied mask.