mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
23 lines
638 B
TypeScript
23 lines
638 B
TypeScript
import { Frame } from "@nativescript/core/ui/frame";
|
|
import * as observable from "@nativescript/core/data/observable";
|
|
|
|
import { Trace } from "@nativescript/core";
|
|
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);
|
|
}
|