Files
NativeScript/apps/tests/ui/repeaterItems-bindingToGestures.ts
2015-08-14 16:44:51 +03:00

14 lines
386 B
TypeScript

function pageLoaded(args) {
var page = args.object;
page.bindingContext = {
items: [
{ text: "1", tapItem: function () { console.log("1") } },
{ text: "2", tapItem: function () { console.log("2") } }
]
};
}
exports.pageLoaded = pageLoaded;
exports.tapPage = function (args) {
console.log("Tap! " + args + " " + args.object);
}