-
Notifications
You must be signed in to change notification settings - Fork 1
/
main-page.ts
33 lines (28 loc) · 887 Bytes
/
main-page.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import * as app from 'application';
import { Color } from 'color';
import * as platform from 'platform';
import { Demo } from "./main-view-model";
import { View } from "ui/core/view";
import { ArchitectView } from 'nativescript-wikitudearchitectview'
import * as frameModule from 'ui/frame'
function pageLoaded(args) {
var page = <View>args.object;
page.bindingContext = new Demo();
var architectView = page.getViewById<any>("architectView");
console.log('pageLoaded');
}
exports.pageLoaded = pageLoaded;
export function goToTestPage(eventData){
frameModule.topmost().navigate('test-page')
};
export function urlLoaded(eventData){
console.log(eventData.url);
console.log('url loaded');
};
export function urlLoadError(eventData) {
console.dump(eventData.error);
console.log('url failed')
};
export function urlInvoked(eventData){
console.log('url invoked')
};