Files
NativeScript/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.ts
2019-06-26 15:13:48 +03:00

15 lines
438 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"); } }
],
parentViewProperty: "Parent View Property"
};
}
exports.pageLoaded = pageLoaded;
exports.tapPage = function (args) {
console.log("Tap! " + args + " " + args.object);
};