mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import * as view from "ui/core/view";
|
|
import * as pages from "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 = "";
|
|
} |