mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-23 09:01:10 +08:00
16 lines
505 B
TypeScript
16 lines
505 B
TypeScript
import * as observable from "data/observable";
|
|
import * as gestures from "ui/gestures";
|
|
import * as pages from "ui/page";
|
|
|
|
export function pageLoaded(args: observable.EventData) {
|
|
var page = <pages.Page>args.object;
|
|
page.bindingContext = { tapAction: tapAction, doubleTapAction: doubleTapAction };
|
|
}
|
|
|
|
export function tapAction(args: gestures.GestureEventData) {
|
|
console.log("tapAction")
|
|
}
|
|
|
|
export function doubleTapAction(args: gestures.GestureEventData) {
|
|
console.log("doubleTapAction")
|
|
} |