Files
NativeScript/tests/app/pages/fonts-test.ts
2016-12-20 13:36:10 +02:00

19 lines
586 B
TypeScript

import * as stack from "ui/layouts/stack-layout";
import * as style from "ui/styling/style";
import {unsetValue} from "ui/core/view";
export function buttonTap(args) {
var stackLayout = <stack.StackLayout>args.object.parent;
for (var i = 0; i < stackLayout.getChildrenCount(); i++){
var v = stackLayout.getChildAt(i);
v.style.fontFamily = unsetValue;
v.style.fontSize = unsetValue;
v.style.fontStyle = unsetValue;
v.style.fontWeight = unsetValue;
v.style.color = unsetValue;
v.style.textAlignment = unsetValue;
}
}