Files
NativeScript/apps/ui-tests-app/css/text-decoration.ts
Vladimir Enchev abe4614735 example updated
2015-11-06 16:21:29 +02:00

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";
}
}