Files
NativeScript/apps/app/gallery-app/views/list-picker.ts

10 lines
326 B
TypeScript

import pages = require("ui/page");
import observableModule = require("data/observable");
export function onPageLoaded(args: observableModule.EventData) {
var page = <pages.Page>args.object;
page.bindingContext = {
items: ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"],
selectedIndex: 2
};
}