mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00

Fix for types - isString and isNumber. Modified several tests to pass on VS Emulator for Android. Fix page background to be applied in onLoaded method. Enhancements for dependency-observable - it is now possible to add defaultValueGetter function to extract default value for a property. It can also be cached or not. Remove android_constants because they are per theme and we cannot use them safely. Fix for SearchBar reseColorProperty method.
18 lines
631 B
TypeScript
18 lines
631 B
TypeScript
import stack = require("ui/layouts/stack-layout");
|
|
import style = require("ui/styling/style");
|
|
|
|
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._resetValue(style.fontFamilyProperty);
|
|
v.style._resetValue(style.fontSizeProperty);
|
|
v.style._resetValue(style.fontStyleProperty);
|
|
v.style._resetValue(style.fontWeightProperty);
|
|
|
|
v.style._resetValue(style.colorProperty);
|
|
v.style._resetValue(style.textAlignmentProperty);
|
|
}
|
|
}
|