mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
14 lines
392 B
TypeScript
14 lines
392 B
TypeScript
import * as view from "tns-core-modules/ui/core/view";
|
|
import * as pages from "tns-core-modules/ui/page";
|
|
|
|
export function applyTap(args) {
|
|
var page = <pages.Page>(<view.View>args.object).page;
|
|
var css = "#test-element { " + args.object.tag + " }";
|
|
page.css = css;
|
|
}
|
|
|
|
export function resetTap(args) {
|
|
var page = <pages.Page>(<view.View>args.object).page;
|
|
page.css = "";
|
|
}
|