MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / resetStyles

Function resetStyles

apps/ui/src/fonts-tests/label-page.ts:3–15  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1import { View, unsetValue, eachDescendant, StackLayout } from '@nativescript/core';
2
3export function resetStyles(args) {
4 var stackLayout = <StackLayout>args.object.parent;
5 eachDescendant(stackLayout, function (v: View) {
6 v.style.fontFamily = unsetValue;
7 v.style.fontSize = unsetValue;
8 v.style.fontStyle = unsetValue;
9 v.style.fontWeight = unsetValue;
10 v.style.color = unsetValue;
11 v.style.textAlignment = unsetValue;
12
13 return true;
14 });
15}

Callers

nothing calls this directly

Calls 1

eachDescendantFunction · 0.90

Tested by

no test coverage detected