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

Function pageLoaded

apps/ui/src/action-bar/main-page.ts:4–8  ·  view source on GitHub ↗
(args: EventData)

Source from the content-addressed store, hash-verified

2import { SubMainPageViewModel } from '../sub-main-page-view-model';
3
4export function pageLoaded(args: EventData) {
5 const page = <Page>args.object;
6 const wrapLayout = <WrapLayout>page.getViewById('wrapLayoutWithExamples');
7 page.bindingContext = new SubMainPageViewModel(wrapLayout, loadExamples());
8}
9
10export function loadExamples() {
11 const examples = new Map<string, string>();

Callers

nothing calls this directly

Calls 1

loadExamplesFunction · 0.70

Tested by

no test coverage detected