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

Function createPage

apps/automated/src/pages/page5.ts:66–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64//print();
65
66export function createPage() {
67 var page = new Page();
68 var grid = new GridLayout();
69
70 var btn = new Button();
71 btn.text = 'print';
72 btn.on('tap', (d) => {
73 print();
74 });
75
76 grid.addChild(btn);
77
78 page.content = grid;
79
80 return page;
81}
82//export var Page = page;

Callers

nothing calls this directly

Calls 3

printFunction · 0.70
onMethod · 0.65
addChildMethod · 0.45

Tested by

no test coverage detected