From: Cho Woongsuk Date: Wed, 8 Jul 2015 05:07:13 +0000 (+0900) Subject: add Note for web service to notifiy that feature is optional X-Git-Tag: tizen_3.0/TD_SYNC/20161201~729^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5c0ec18e1cc25dea6d608e394452c83b4776686;p=sdk%2Fonline-doc.git add Note for web service to notifiy that feature is optional update example of rotarydetent event to show usage of direction value Change-Id: I1432caa3ea9b68afd4e74feb304029fe10e6b032 Signed-off-by: Cho Woongsuk --- diff --git a/org.tizen.gettingstarted/html/web/details/event_handling_w.htm b/org.tizen.gettingstarted/html/web/details/event_handling_w.htm index 23b7bd0..6d3e54b 100644 --- a/org.tizen.gettingstarted/html/web/details/event_handling_w.htm +++ b/org.tizen.gettingstarted/html/web/details/event_handling_w.htm @@ -75,8 +75,19 @@
 document.addEventListener("rotarydetent", function(ev) 
 {
-   var direction = ev.detail.direction; 
-   /* Add behavior for detent detected event with a direction value */
+   /* Get direction value from event */
+   var direction = ev.detail.direction;
+   
+   if (direction == "CW")
+   {
+      /* Add behavior for clockwise rotation */
+      console.log("clockwise");
+   }
+   else if (direction == "CCW")
+   {
+      /* Add behavior for counter-clockwise rotation */
+      console.log("counter-clockwise");
+   }
 });
 
diff --git a/org.tizen.guides/html/web/tizen/service/service_w.htm b/org.tizen.guides/html/web/tizen/service/service_w.htm index 8a80e50..36b3926 100644 --- a/org.tizen.guides/html/web/tizen/service/service_w.htm +++ b/org.tizen.guides/html/web/tizen/service/service_w.htm @@ -44,7 +44,7 @@ Note - This feature is supported in wearable applications only. + This feature is supported in wearable applications only.

The web service application is OPTIONAL feature, which means that it may not be supported in all wearable devices.