mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
18 lines
543 B
TypeScript
18 lines
543 B
TypeScript
import * as stack from "ui/layouts/stack-layout";
|
|
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;
|
|
}
|
|
}
|