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

Function createPage

apps/ui/src/events/i73-page.ts:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import * as stackModule from '@nativescript/core/ui/layouts/stack-layout';
4
5export function createPage() {
6 var stack = new stackModule.StackLayout();
7
8 var btn = new button.Button();
9 btn.text = 'Alert';
10 btn.on(button.Button.tapEvent, function () {
11 alert('Alert is global');
12 });
13
14 stack.addChild(btn);
15
16 var page = new pages.Page();
17 page.content = stack;
18
19 return page;
20}

Callers

nothing calls this directly

Calls 3

onMethod · 0.65
alertFunction · 0.50
addChildMethod · 0.45

Tested by

no test coverage detected