mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
22 lines
588 B
TypeScript
22 lines
588 B
TypeScript
import * as frame from "ui/frame";
|
|
import * as observable from "data/observable";
|
|
|
|
import * as trace from "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);
|
|
} |