Files
NativeScript/tests/app/ui/web-view/web-view-code-snippet.ts
Manol Donev 03cfc0cee3 chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00

24 lines
633 B
TypeScript

// >> web-view-loaded
import { EventData } from "tns-core-modules/data/observable";
import { WebView } from "tns-core-modules/ui/web-view";
import { isAndroid } from "tns-core-modules/platform"
export function navigatingTo(args: EventData) {
console.log("page navigating to");
}
export function webViewTouch(args) {
console.log("touch event");
}
export function webViewPan(args) {
console.log("pan gesture");
}
export function webViewLoaded(args) {
var webview: WebView = <WebView>args.object;
if (isAndroid) {
webview.android.getSettings().setDisplayZoomControls(false);
}
}
// << web-view-loaded