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

Function buttonTap

apps/automated/src/pages/fonts-test.ts:4–17  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

2import { unsetValue } from '@nativescript/core';
3
4export function buttonTap(args) {
5 var stackLayout = <stack.StackLayout>args.object.parent;
6
7 for (var i = 0; i < stackLayout.getChildrenCount(); i++) {
8 var v = stackLayout.getChildAt(i);
9 v.style.fontFamily = unsetValue;
10 v.style.fontSize = unsetValue;
11 v.style.fontStyle = unsetValue;
12 v.style.fontWeight = unsetValue;
13
14 v.style.color = unsetValue;
15 v.style.textAlignment = unsetValue;
16 }
17}

Callers

nothing calls this directly

Calls 2

getChildrenCountMethod · 0.65
getChildAtMethod · 0.65

Tested by

no test coverage detected