mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
16 lines
540 B
TypeScript
16 lines
540 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, "~/ui-tests-app/list-view/no-image.png", null, "~/ui-tests-app/list-view/no-image.png", null, "res://icon", null];
|
|
constructor() {
|
|
super();
|
|
|
|
}
|
|
} |