mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
23 lines
640 B
TypeScript
23 lines
640 B
TypeScript
import * as frame from "tns-core-modules/ui/frame";
|
|
import * as observable from "tns-core-modules/data/observable";
|
|
|
|
import * as trace from "tns-core-modules/trace";
|
|
trace.setCategories("gestures");
|
|
trace.enable();
|
|
|
|
export function itemTap(args) {
|
|
console.log("----- Item tapped: " + args.view.tag);
|
|
|
|
frame.topmost().navigate({
|
|
moduleName: "./pages/page5",
|
|
});
|
|
}
|
|
|
|
export function itemLoaded(args: observable.EventData) {
|
|
console.log("----- Item loaded: " + (<any>args.object).tag);
|
|
}
|
|
|
|
export function itemUnloaded(args: observable.EventData) {
|
|
console.log("----- Item unloaded: " + (<any>args.object).tag);
|
|
}
|