mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
20 lines
435 B
TypeScript
20 lines
435 B
TypeScript
import * as PageModule from '@nativescript/core/ui/page';
|
|
import * as LabelModule from '@nativescript/core/ui/label';
|
|
|
|
export class TestPageModule extends PageModule.Page {
|
|
constructor() {
|
|
super();
|
|
|
|
var label = new LabelModule.Label();
|
|
label.text = 'Label created within a page module.';
|
|
|
|
this.content = label;
|
|
}
|
|
}
|
|
|
|
export function createPage() {
|
|
return new TestPageModule();
|
|
}
|
|
|
|
//export var Page = new TestPageModule();
|