mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
17 lines
553 B
TypeScript
17 lines
553 B
TypeScript
var obj;
|
|
|
|
export function loaded(args) {
|
|
obj = args.object;
|
|
}
|
|
|
|
export function butonTap(args) {
|
|
if (obj.style.textDecoration === "underline") {
|
|
obj.style.textDecoration = "line-through";
|
|
} else if (obj.style.textDecoration === "line-through") {
|
|
obj.style.textDecoration = "line-through underline";
|
|
} else if (obj.style.textDecoration === "line-through underline") {
|
|
obj.style.textDecoration = "none";
|
|
} else if (obj.style.textDecoration === "none") {
|
|
obj.style.textDecoration = "underline";
|
|
}
|
|
} |