MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / setTextFieldText

Function setTextFieldText

apps/ui/src/text-field/max-length-page.ts:21–29  ·  view source on GitHub ↗
(page: Page, name: string, text: string)

Source from the content-addressed store, hash-verified

19}
20
21function setTextFieldText(page: Page, name: string, text: string) {
22 const textField = <TextField>page.getViewById(name);
23
24 if (name === 'maxLenghtFromCodeBehind' || name === 'maxLenghtFromCodeBehindWithText') {
25 textField.maxLength = 3;
26 }
27
28 textField.text = text;
29}

Callers 1

setTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected