(args)
| 1 | import { View, unsetValue, eachDescendant, StackLayout } from '@nativescript/core'; |
| 2 | |
| 3 | export 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 | } |
nothing calls this directly
no test coverage detected