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

Function setText

apps/ui/src/text-field/max-length-page.ts:3–14  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1import { Page, TextField } from '@nativescript/core';
2
3export function setText(args) {
4 let page = args;
5
6 if (page.constructor.name !== 'Page') {
7 page = args.object.page;
8 setTextFieldText(page, 'inXml', 'in xml');
9 }
10
11 setTextFieldText(page, 'maxLenghtFromCodeBehindWithText', 'from code behind');
12 setTextFieldText(page, 'useInput', '');
13 setTextFieldText(page, 'maxLenghtFromCodeBehind', '');
14}
15
16export function pageLoaded(args) {
17 const page = args.object;

Callers 1

pageLoadedFunction · 0.70

Calls 1

setTextFieldTextFunction · 0.85

Tested by

no test coverage detected