mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
15 lines
438 B
TypeScript
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);
|
|
} |