MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / createPage

Function createPage

apps/ui/src/events/console-page.ts:7–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import * as buttonModule from '@nativescript/core/ui/button';
6
7export function createPage() {
8 var stackLayout = new stackLayoutModule.StackLayout();
9 var label = new labelModule.Label();
10 label.text = 'CONSOLE MODULE';
11 var textView = new textViewModule.TextView();
12 textView.text = 'Check out the console output.';
13 stackLayout.addChild(label);
14 stackLayout.addChild(textView);
15
16 var page = new pageModule.Page();
17 page.on(pageModule.Page.loadedEvent, function () {
18 pageLoaded();
19 });
20
21 page.content = stackLayout;
22
23 return page;
24}
25
26export function pageLoaded() {
27 console.log('### TEST START ###');

Callers

nothing calls this directly

Calls 3

pageLoadedFunction · 0.70
onMethod · 0.65
addChildMethod · 0.45

Tested by

no test coverage detected