MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / onMargins

Method onMargins

apps/ui/src/layouts/myview.ts:28–35  ·  view source on GitHub ↗
(args: { eventName: string; object: any })

Source from the content-addressed store, hash-verified

26 }
27
28 public onMargins(args: { eventName: string; object: any }): void {
29 var view: View = <View>args.object;
30 if (view.marginLeft !== 5) {
31 super.setMargins(view, 5, 5, 5, 5);
32 } else {
33 super.setMargins(view, 0, 0, 0, 0);
34 }
35 }
36
37 public onAllProperties(args: { eventName: string; object: any }): void {
38 let child;

Callers

nothing calls this directly

Calls 1

setMarginsMethod · 0.80

Tested by

no test coverage detected