mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
14 lines
526 B
TypeScript
14 lines
526 B
TypeScript
import { EventData, Observable } from "tns-core-modules/data/observable";
|
|
import { Page } from "tns-core-modules/ui/page";
|
|
|
|
export function navigatingTo(args: EventData) {
|
|
let page = <Page>args.object;
|
|
page.bindingContext = new ImagesTemplateViewModel();
|
|
}
|
|
|
|
export class ImagesTemplateViewModel extends Observable {
|
|
public items: Array<string> = ["res://icon", null, "~/resources/images/no-image.png", null, "~/resources/images/no-image.png", null, "res://icon", null];
|
|
constructor() {
|
|
super();
|
|
}
|
|
} |