Files
NativeScript/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.ts
2019-09-19 15:40:31 +03:00

16 lines
439 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);
};