From abe4614735da5248461b3deae930638fdbf4fe1a Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Fri, 6 Nov 2015 16:21:29 +0200 Subject: [PATCH] example updated --- CrossPlatformModules.csproj | 3 ++- apps/ui-tests-app/css/text-decoration.ts | 17 +++++++++++++++++ apps/ui-tests-app/css/text-decoration.xml | 5 ++++- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 apps/ui-tests-app/css/text-decoration.ts diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj index 2770e8f64..d160c831f 100644 --- a/CrossPlatformModules.csproj +++ b/CrossPlatformModules.csproj @@ -238,6 +238,7 @@ color.xml + html-view.xml @@ -2092,7 +2093,7 @@ False - + \ No newline at end of file diff --git a/apps/ui-tests-app/css/text-decoration.ts b/apps/ui-tests-app/css/text-decoration.ts new file mode 100644 index 000000000..eceb2f30e --- /dev/null +++ b/apps/ui-tests-app/css/text-decoration.ts @@ -0,0 +1,17 @@ +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"; + } +} \ No newline at end of file diff --git a/apps/ui-tests-app/css/text-decoration.xml b/apps/ui-tests-app/css/text-decoration.xml index 4649b52cc..f1a99cadb 100644 --- a/apps/ui-tests-app/css/text-decoration.xml +++ b/apps/ui-tests-app/css/text-decoration.xml @@ -1,6 +1,9 @@ - + +