[TAU] merge 2.3.1 wearable new feature ro 2.4
authorheeju Joo <heeju.joo@samsung.com>
Tue, 7 Jul 2015 11:38:18 +0000 (20:38 +0900)
committerheeju Joo <heeju.joo@samsung.com>
Tue, 7 Jul 2015 12:19:37 +0000 (21:19 +0900)
[new feature]
- Circular Index Scroll bar
- Selector
[ui guide change]
Support Circular UI
- moreoptions
- footerbuttons
- indexscrollbar

Change-Id: Icc0ad6563aafe31f015a3796f019d0c532ad94f9
Signed-off-by: heeju Joo <heeju.joo@samsung.com>
23 files changed:
org.tizen.ui.guides/html/images/rectangular_index.png [new file with mode: 0644]
org.tizen.ui.guides/html/images/rectangular_moreoption.png [changed mode: 0755->0644]
org.tizen.ui.guides/html/images/rectangular_processing.png [changed mode: 0755->0644]
org.tizen.ui.guides/html/images/round_footer.png [changed mode: 0755->0644]
org.tizen.ui.guides/html/images/round_index.png [new file with mode: 0644]
org.tizen.ui.guides/html/images/round_moreoption.png [changed mode: 0755->0644]
org.tizen.ui.guides/html/images/round_multibtn.png [changed mode: 0755->0644]
org.tizen.ui.guides/html/images/round_processing.png [changed mode: 0755->0644]
org.tizen.ui.guides/html/index.htm
org.tizen.ui.guides/html/web/tau/circular_ui_ww.htm
org.tizen.ui.guides/html/web/tau/footerbutton_ww.htm
org.tizen.ui.guides/html/web/tau/indexscrollbar_ww.htm [new file with mode: 0755]
org.tizen.ui.guides/html/web/tau/moreoptions_ww.htm
org.tizen.ui.guides/index.xml
org.tizen.web.apireference/html/index.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circleprogressbar.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circularindexscrollbar.htm [new file with mode: 0755]
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_indexscrollbar.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_pageindicator.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_selector.htm [new file with mode: 0755]
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_viewSwitcher.htm [changed mode: 0644->0755]
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/widget_reference.htm
org.tizen.web.apireference/index.xml

diff --git a/org.tizen.ui.guides/html/images/rectangular_index.png b/org.tizen.ui.guides/html/images/rectangular_index.png
new file mode 100644 (file)
index 0000000..fe118fc
Binary files /dev/null and b/org.tizen.ui.guides/html/images/rectangular_index.png differ
old mode 100755 (executable)
new mode 100644 (file)
index 5a8d4f7..08d8502
Binary files a/org.tizen.ui.guides/html/images/rectangular_processing.png and b/org.tizen.ui.guides/html/images/rectangular_processing.png differ
old mode 100755 (executable)
new mode 100644 (file)
index 6b677ec..d5c63b4
Binary files a/org.tizen.ui.guides/html/images/round_footer.png and b/org.tizen.ui.guides/html/images/round_footer.png differ
diff --git a/org.tizen.ui.guides/html/images/round_index.png b/org.tizen.ui.guides/html/images/round_index.png
new file mode 100644 (file)
index 0000000..ca33738
Binary files /dev/null and b/org.tizen.ui.guides/html/images/round_index.png differ
old mode 100755 (executable)
new mode 100644 (file)
index fe755d1..adec378
Binary files a/org.tizen.ui.guides/html/images/round_moreoption.png and b/org.tizen.ui.guides/html/images/round_moreoption.png differ
old mode 100755 (executable)
new mode 100644 (file)
index d8dcd9d..77b6d6b
Binary files a/org.tizen.ui.guides/html/images/round_multibtn.png and b/org.tizen.ui.guides/html/images/round_multibtn.png differ
old mode 100755 (executable)
new mode 100644 (file)
index 030ef40..7b59fe2
Binary files a/org.tizen.ui.guides/html/images/round_processing.png and b/org.tizen.ui.guides/html/images/round_processing.png differ
index e93a5b0..d2fe391 100755 (executable)
@@ -43,6 +43,7 @@
                                                <li><a href="web/tau/footerbutton_ww.htm">Footer Button</a></li>
                                                <li><a href="web/tau/thumbnail_ww.htm">Thumbnail</a></li>               
                                                <li><a href="web/tau/popup_ww.htm">Popup</a></li>
+                                               <li><a href="web/tau/indexscrollbar_ww.htm">Index Scroll Bar</a></li>
                                        </ul>
                                </li>
                                <li><a href="web/tau/accessibility_w.htm">Accessibility</a></li>
index cd4deb2..b21a9f2 100755 (executable)
@@ -192,7 +192,11 @@ else
        <tr>
         <td><a href="popup_ww.htm">Popup</a></td>
         <td>Shows how you can create a popup component.</td>
-    </tr>
+        </tr>
+       <tr>
+       <td><a href="indexscrollbar_ww.htm">Index Scroll Bar</a></td>
+        <td>Shows how you can create a index scroll bar component.</td>
+       </tr>
 </tbody>
 </table>
 
@@ -218,4 +222,4 @@ else
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
index 0ec86d2..0469c7b 100755 (executable)
@@ -21,7 +21,7 @@
        <div id="toc_border"><div id="toc">
                <p class="toc-title">Related Info</p>
                <ul class="toc">
-                       <li><a href="../../../../org.tizen.web.apireference/html/ui_fw_api/Base/page.htm">Page Handling</a></li>
+                       <li><a href="../../../../org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_selector.htm">Selector API</a></li>
                </ul>
        </div></div>
 </div>
 <p>When there are multiple buttons, the buttons except for the first button use drawer in Circular UI.</p>
 
 <pre class="prettyprint">
-&lt;div class=&quot;ui-page ui-page-active&quot; id=&quot;bottomButtonWithMorePage&quot; &gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Multiple Buttons&lt;/h2&gt;
+&lt;div&nbsp;class=&quot;ui-page&nbsp;ui-page-active&quot;&nbsp;id=&quot;bottomButtonWithMorePage&quot;&nbsp;&gt;
+&nbsp;&nbsp;&nbsp;&lt;header&nbsp;class=&quot;ui-header&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&nbsp;class=&quot;ui-title&quot;&gt;Multiple&nbsp;Buttons&lt;/h2&gt;
 &nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content content-padding&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It was a real pleasure for me to finally get to meet you. My colleagues join me in sending you our holiday greetings.
+&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-content&nbsp;content-padding&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It&nbsp;was&nbsp;a&nbsp;real&nbsp;pleasure&nbsp;for&nbsp;me&nbsp;to&nbsp;finally&nbsp;get&nbsp;to&nbsp;meet&nbsp;you.&nbsp;My&nbsp;colleagues&nbsp;join&nbsp;me&nbsp;in&nbsp;sending&nbsp;you&nbsp;our&nbsp;holiday&nbsp;greetings.
 &nbsp;&nbsp;&nbsp;&lt;/div&gt;
 
-&nbsp;&nbsp;&nbsp;&lt;a class=&quot;drawer-handler&quot;&gt;&lt;/a&gt;
-
-&nbsp;&nbsp;&nbsp;&lt;!-- Circle Profile --&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;moreoptionsDrawer&quot; class=&quot;ui-drawer drawer-elem&quot; data-drawer-target=&quot;#bottomButtonWithMorePage&quot; data-position=&quot;right&quot; data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;moreoptionsSectionChanger&quot; class=&quot;ui-section-changer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;2&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;3&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;drawer-handler&quot;&gt;&lt;/a&gt;
+
+&nbsp;&nbsp;&nbsp;&lt;!--&nbsp;Circle&nbsp;Profile&nbsp;--&gt;
+&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;moreoptionsDrawer&quot;&nbsp;class=&quot;ui-drawer&nbsp;drawer-elem&quot;&nbsp;data-drawer-target=&quot;#bottomButtonWithMorePage&quot;&nbsp;data-position=&quot;right&quot;&nbsp;data-enable=&quot;true&quot;&nbsp;data-drag-edge=&quot;1&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;selector&quot;&nbsp;class=&quot;ui-selector&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;show-icon&quot;&nbsp;data-title=&quot;2&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;human-icon&quot;&nbsp;data-title=&quot;3&quot;&gt;&lt;/div&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
 &nbsp;&nbsp;&nbsp;&lt;/div&gt;
 
-&nbsp;&nbsp;&nbsp;&lt;footer class=&quot;ui-footer ui-grid-col-3 ui-bottom-button&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; class=&quot;ui-btn&quot;&gt;1&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; class=&quot;ui-btn&quot;&gt;2&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; class=&quot;ui-btn&quot;&gt;3&lt;/a&gt;
+&nbsp;&nbsp;&nbsp;&lt;footer&nbsp;class=&quot;ui-footer&nbsp;ui-grid-col-3&nbsp;ui-bottom-button&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href=&quot;#&quot;&nbsp;class=&quot;ui-btn&quot;&gt;1&lt;/a&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href=&quot;#&quot;&nbsp;class=&quot;ui-btn&quot;&gt;2&lt;/a&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href=&quot;#&quot;&nbsp;class=&quot;ui-btn&quot;&gt;3&lt;/a&gt;
 &nbsp;&nbsp;&nbsp;&lt;/footer&gt;
 &lt;/div&gt;
 </pre>
 <li>Edit the CSS code to set the visual style of the buttons:
 
 <pre class="prettyprint">
-.drawer-elem 
-{
-&nbsp;&nbsp;&nbsp;display: none;
+.drawer-elem&nbsp;{
+&nbsp;&nbsp;&nbsp;display:&nbsp;none;
 }
 
-@media all and (-tizen-geometric-shape: circle) 
-{
-&nbsp;&nbsp;&nbsp;.drawer-handler 
-&nbsp;&nbsp;&nbsp;{
+@media&nbsp;all&nbsp;and&nbsp;(-tizen-geometric-shape:&nbsp;circle)&nbsp;{
+&nbsp;&nbsp;&nbsp;.drawer-handler&nbsp;{
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:24px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 115px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: fixed;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top: 122px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right: 0;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: transparent;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: #a4a4a4;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-image: url(/*path of the image*/);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-size: 18px 36px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-repeat: no-repeat;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-position: 0 40px;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;.drawer-elem 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display: block;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: rgba(255, 255, 255, 0.1);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius: 100%;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;.sections,
-&nbsp;&nbsp;&nbsp;.options 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height:&nbsp;115px;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position:&nbsp;fixed;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top:&nbsp;122px;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right:&nbsp;0;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color:&nbsp;transparent;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color:&nbsp;#a4a4a4;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-image:&nbsp;url(/*path&nbsp;of&nbsp;the&nbsp;image*/);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-size:&nbsp;18px&nbsp;36px;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-repeat:&nbsp;no-repeat;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-mask-position:&nbsp;0&nbsp;40px;
 &nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;.option-button 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 158px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 158px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: #a4a4a4;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: relative;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;transform: translate3d(-50%, -50%, 0);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border: none;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;line-height: 158px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-appearance: none;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;.ui-bottom-button a + a 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display: none;
+&nbsp;&nbsp;&nbsp;.ui-bottom-button&nbsp;a&nbsp;+&nbsp;a&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display:&nbsp;none;
 &nbsp;&nbsp;&nbsp;}
 }
 </pre>
 </li>
 <li>Edit the JavaScript code to manage the footer button events and other functionalities:
 <pre class="prettyprint">
-(function()
-{
-&nbsp;&nbsp;&nbsp;var page = document.querySelector(&quot;#bottomButtonWithMorePage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = page.querySelector(&quot;#moreoptionsDrawer&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler = page.querySelector(&quot;.ui-more&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawerMoreHelper;
-
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagebeforeshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tau.support.shape.circle) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawerMoreHelper = tau.helper.DrawerMoreStyle.create(drawer, 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler: &quot;.drawer-handler&quot;,
+(function(){
+&nbsp;&nbsp;&nbsp;var page = document.querySelector("#bottomButtonWithMorePage"),
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = page.querySelector("#moreoptionsDrawer"),
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler = page.querySelector(".ui-more");
+
+&nbsp;&nbsp;&nbsp;page.addEventListener( "pagebeforeshow", function() {
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tau.support.shape.circle) {
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.helper.DrawerMoreStyle.create(drawer, {
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler: ".drawer-handler",
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 &nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagehide&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tau.support.shape.circle) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (drawerMoreHelper) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawerMoreHelper.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;});
 })();
 </pre>
 </li>
@@ -230,4 +177,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/org.tizen.ui.guides/html/web/tau/indexscrollbar_ww.htm b/org.tizen.ui.guides/html/web/tau/indexscrollbar_ww.htm
new file mode 100755 (executable)
index 0000000..fd0bd99
--- /dev/null
@@ -0,0 +1,184 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+       <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+       <meta http-equiv="X-UA-Compatible" content="IE=9" />
+       <link rel="stylesheet" type="text/css" href="../../css/styles.css" />
+       <link rel="stylesheet" type="text/css" href="../../css/snippet.css" />
+       <script type="text/javascript" src="../../scripts/snippet.js"></script> 
+       <script type="text/javascript" src="../../scripts/jquery.util.js" charset="utf-8"></script>
+       <script type="text/javascript" src="../../scripts/common.js" charset="utf-8"></script>
+       <script type="text/javascript" src="../../scripts/core.js" charset="utf-8"></script>
+       <script type="text/javascript" src="../../scripts/search.js" charset="utf-8"></script>
+       <title>Index Scroll Bar</title>
+</head>
+<body onload="prettyPrint()" id="content">
+
+<div id="toc-navigation">
+       <div id="profile">
+               <p><img alt="Wearable Web" src="../../images/ww_icon.png"/></p>
+       </div>
+
+       <div id="toc_border"><div id="toc">
+               <p class="toc-title">Related Info</p>
+               <ul class="toc">
+                       <li><a href="../../../../org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circularindexscrollbar.htm">Circular Index Scroll Bar API for Wearable Web</a></li>
+                       <li><a href="../../../../org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_indexscrollbar.htm">Index Scroll Bar API for Wearable Web</a></li>
+               </ul>
+       </div></div>
+</div>
+
+<div id="container"><div id="contents"><div class="content">
+<h1>Index Scroll Bar</h1>
+
+<p>You can create a circle/rectangle shaped index scroll bar component with the CircularIndexScrollBar and IndexScrollBar API.</p>
+
+  <table class="note"> 
+   <tbody> 
+    <tr> 
+     <th class="note" colspan="1" rowspan="1">Note</th> 
+    </tr> 
+    <tr> 
+     <td class="note" colspan="1" rowspan="1">This feature is supported in wearable applications only.</td> 
+    </tr> 
+   </tbody> 
+  </table>
+
+<p>The following figure shows the layout of the index scroll bar in a rectangular and circular UI.</p>
+
+<p class="figure">Figure: The circle-shaped progress bar in rectangular and circular devices</p>
+                       <p align="center"><img alt="index scroll bar in a rectangular device" src="../../images/rectangular_index.png" />  <img alt="Circle-shaped index scroll bar in a circular device" src="../../images/round_index.png" /></p>
+
+<p>To implement the index scroll bar:</p>
+
+<ol>
+<li>Edit the HTML code to add the component to your application screen:
+<pre class="prettyprint">&lt;div&nbsp;class=&quot;ui-page&nbsp;ui-page-active&quot;&nbsp;id=&quot;pageIndexScrollbar&quot;&nbsp;&gt;
+&nbsp;&nbsp;&nbsp;&lt;header&nbsp;class=&quot;ui-header&nbsp;ui-header-small&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&nbsp;class=&quot;ui-title&nbsp;ui-title-text-fadeout&quot;&gt;Index&nbsp;Scroll&nbsp;Bar&lt;/h2&gt;
+&nbsp;&nbsp;&nbsp;&lt;/header&gt;
+&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;indexscrollbar&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&lt;section&nbsp;class=&quot;ui-content&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&nbsp;ui-snap-listview&quot;&nbsp;id=&quot;list1&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-listview-divider&quot;&gt;A&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-listview-divider&quot;&gt;B&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bob&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-listview-divider&quot;&gt;C&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Carry&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-listview-divider&quot;&gt;D&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Daisy&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-listview-divider&quot;&gt;E&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Eric&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-listview-divider&quot;&gt;F&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Fay&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-listview-divider&quot;&gt;G&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Garry&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+&nbsp;&nbsp;&nbsp;&lt;/section&gt;
+&lt;/div&gt;
+</pre>
+</li>
+
+<li>Edit the JavaScript code to manage the progress bar events and other functionality:
+<p>How to create a component selectively</p>
+<pre class="prettyprint">
+var indexScrollbarElement = document.getElementById("indexscrollbar");
+
+if (!tau.support.shape.circle) {
+       // Create IndexScrollbar
+       indexScrollbar = new tau.widget.IndexScrollbar(indexScrollbarElement);
+} else {
+       // Create CircularIndexScrollbar
+       indexScrollbar = new tau.widget.CircularIndexScrollbar(indexScrollbarElement);
+}
+</pre>
+
+<p>How to use callback<p>
+<pre class="prettyprint">
+indexScrollbarElement.addEventListener("select", function( event ) {
+       var index = event.detail.index;
+       // do something using the index
+       console.log(index);
+});
+</pre>
+
+<p>In the following example, the list scrolls to the position of the list item defined using
+the ui-listview-divider class, selected by the index scroll bar:<br>
+(Note : In rectangular UI, touching index generates the select, but in round UI, the select occurs when using rotary.)<p>
+
+<pre class="prettyprint">
+(function() {
+       var page = document.getElementById("pageIndexScrollbar"),
+               listviewElement = document.getElementById("list1"),
+               isCircle = tau.support.shape.circle,
+               scroller,
+               indexScrollbar;
+
+       page.addEventListener("pageshow", function(ev) {
+               var indexScrollbarElement = document.getElementById("indexscrollbar"),
+                       listDividers = listviewElement.getElementsByClassName("ui-listview-divider"),   // list dividers
+                       dividers = {},  // collection of list dividers
+                       indices = [],   // index list
+                       divider,
+                       i, idx;
+
+               // For all list dividers,
+               for(i = 0; i < listDividers.length; i++) {
+                       // Add the list divider elements to the collection
+                       divider = listDividers[i];
+                       idx = divider.innerText;
+                       dividers[idx] = divider;
+
+                       // Add the index to the index list
+                       indices.push(idx);
+               }
+
+               scroller = tau.util.selectors.getScrollableParent(listviewElement);
+
+               if (!isCircle) {
+                       indexScrollbar = new tau.widget.IndexScrollbar(indexScrollbarElement, {index: indices, container: scroller});
+               } else {
+                       // Create IndexScrollbar
+                       indexScrollbar = new tau.widget.CircularIndexScrollbar(indexScrollbarElement, {index: indices});
+
+                       // Add SnapListview item "selected" event handler.
+                       listviewElement.addEventListener("selected", function (ev) {
+                               var indexValue = ev.target.textContent[0];
+                               indexScrollbar.value(indexValue);
+                       });
+               }
+
+               // Add IndexScrollbar index "select" event handler.
+               indexScrollbarElement.addEventListener("select", function (ev) {
+                       var divider,
+                               idx = ev.detail.index;
+
+                       divider = dividers[idx];
+                       if (divider && scroller) {
+                               // Scroll to the ui-listview-divider element
+                               scroller.scrollTop = divider.offsetTop - scroller.offsetTop;
+                       }
+               });
+       });
+
+       page.addEventListener("pagehide", function(ev) {
+               indexScrollbar.destroy();
+       });
+} ());
+</pre>
+
+</li>
+
+</ol>
+<div id="footer">
+       <hr size="1">
+       <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a
+                       href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution
+               3.0</a> and all of the Code Examples contained herein are licensed under <a
+                       href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the
+               <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+</div>
+</body>
+</html>
index c67ae68..fc01b93 100755 (executable)
@@ -22,7 +22,7 @@
                <div id="toc_border"><div id="toc">
                                <p class="toc-title">Related Info</p>
                                <ul class="toc">
-                                       <li><a href="../../../../org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_viewSwitcher.htm">ViewSwitcher API for Wearable Web</a></li>
+                                       <li><a href="../../../../org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_selector.htm">Selector API for Wearable Web</a></li>
                                </ul>
                </div></div>
 </div>
@@ -30,8 +30,9 @@
 <div id="container"><div id="contents"><div class="content">
 <h1>More Options</h1>
 
-
-<p>In rectangular UI, you can implement more options by using the button and popup components. For a circular UI, use the ViewSwitcher API for implementing the more options button.</p>
+In rectangular UI, you can implement more options using button and popup components.<p>
+Circular UI provides Selector component for more options button.<p>
+The following explains how to make the more options for Circular UI.<p>
 
   <table class="note"> 
    <tbody> 
 <ol>
 
 <li>Edit the HTML code to add the more options component to your application screen:
-<pre class="prettyprint">
-&lt;div id=&quot;moreoptionsPage&quot; class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;link rel=&quot;stylesheet&quot;  href=&quot;./moreoptions.css&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header ui-has-more&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;More Options&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button type=&quot;button&quot; class=&quot;ui-more ui-icon-overflow&quot;&gt;More Options&lt;/button&gt;
+<pre class="prettyprint">&lt;div&nbsp;id=&quot;moreoptionsPage&quot;&nbsp;class=&quot;ui-page&quot;&gt;
+&nbsp;&nbsp;&nbsp;&lt;link&nbsp;rel=&quot;stylesheet&quot;&nbsp;&nbsp;href=&quot;./moreoptions.css&quot;&gt;
+&nbsp;&nbsp;&nbsp;&lt;header&nbsp;class=&quot;ui-header&nbsp;ui-has-more&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&nbsp;class=&quot;ui-title&quot;&gt;More&nbsp;Options&lt;/h2&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button&nbsp;type=&quot;button&quot;&nbsp;class=&quot;ui-more&nbsp;ui-icon-overflow&quot;&gt;More&nbsp;Options&lt;/button&gt;
 &nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content content-padding&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It was a real pleasure for me to finally get to meet you. My colleagues join me in sending you our holiday greetings.
+&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-content&nbsp;content-padding&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It&nbsp;was&nbsp;a&nbsp;real&nbsp;pleasure&nbsp;for&nbsp;me&nbsp;to&nbsp;finally&nbsp;get&nbsp;to&nbsp;meet&nbsp;you.&nbsp;My&nbsp;colleagues&nbsp;join&nbsp;me&nbsp;in&nbsp;sending&nbsp;you&nbsp;our&nbsp;holiday&nbsp;greetings.
 &nbsp;&nbsp;&nbsp;&lt;/div&gt;
 
-&nbsp;&nbsp;&nbsp;&lt;!-- Rectangular Profile --&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;moreoptionsPopup&quot; class=&quot;ui-popup&quot; data-transition=&quot;slideup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;Options&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&lt;!--&nbsp;Rectangular&nbsp;Profile&nbsp;--&gt;
+&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;moreoptionsPopup&quot;&nbsp;class=&quot;ui-popup&quot;&nbsp;data-transition=&quot;slideup&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-header&quot;&gt;Options&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-content&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;1&lt;/a&gt;&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;2&lt;/a&gt;&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;3&lt;/a&gt;&lt;/li&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
 &nbsp;&nbsp;&nbsp;&lt;/div&gt;
 
-&nbsp;&nbsp;&nbsp;&lt;!-- Circular Profile --&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;moreoptionsDrawer&quot; class=&quot;ui-drawer&quot; data-drawer-target=&quot;#moreoptionsPage&quot; data-position=&quot;right&quot; data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;pageIndicator&quot; class=&quot;ui-page-indicator&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;viewSwitcher&quot; class=&quot;ui-view-switcher&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;1&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view ui-view-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;2&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;3&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;4&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;5&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&lt;!--&nbsp;Circular&nbsp;Profile&nbsp;--&gt;
+&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;moreoptionsDrawer&quot;&nbsp;class=&quot;ui-drawer&quot;&nbsp;data-drawer-target=&quot;#moreoptionsPage&quot;&nbsp;data-position=&quot;right&quot;&nbsp;data-enable=&quot;true&quot;&nbsp;data-drag-edge=&quot;1&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;selector&quot;&nbsp;class=&quot;ui-selector&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;show-icon&quot;&nbsp;data-title=&quot;Show&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;human-icon&quot;&nbsp;data-title=&quot;Human&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;delete-icon&quot;&nbsp;data-title=&quot;Delete&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;show-icon&quot;&nbsp;data-title=&quot;Show&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;human-icon&quot;&nbsp;data-title=&quot;Human&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;delete-icon&quot;&nbsp;data-title=&quot;Delete&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;x-icon&quot;&nbsp;data-title=&quot;X&nbsp;Icon&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;fail-icon&quot;&nbsp;data-title=&quot;Fail&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;show-icon&quot;&nbsp;data-title=&quot;Show&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;human-icon&quot;&nbsp;data-title=&quot;Human&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;delete-icon&quot;&nbsp;data-title=&quot;Delete&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;show-icon&quot;&nbsp;data-title=&quot;Show&quot;&gt;&lt;/div&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-item&nbsp;human-icon&quot;&nbsp;data-title=&quot;Human&quot;&gt;&lt;/div&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
 &nbsp;&nbsp;&nbsp;&lt;/div&gt;
 &lt;/div&gt;
 <li>Edit the CSS code to set the visual style of the buttons:
 
 <pre class="prettyprint">
-#moreoptionsDrawer 
-{
-&nbsp;&nbsp;&nbsp;display: none;
+#moreoptionsDrawer&nbsp;{
+&nbsp;&nbsp;&nbsp;display:&nbsp;none;
 }
 
-@media all and (-tizen-geometric-shape: circle) 
-{
-&nbsp;&nbsp;&nbsp;#moreoptionsDrawer 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display: block;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: rgba(255, 255, 255, 0.1);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius: 100%;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;#moreoptionsPopup 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display: none;
+@media&nbsp;all&nbsp;and&nbsp;(-tizen-geometric-shape:&nbsp;circle)&nbsp;{
+&nbsp;&nbsp;&nbsp;#moreoptionsDrawer&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display:&nbsp;block;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color:&nbsp;rgba(255,&nbsp;255,&nbsp;255,&nbsp;0.1);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius:&nbsp;100%;
 &nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;.sections,
-&nbsp;&nbsp;&nbsp;.options 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;.option-button 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 100%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 100%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: relative;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;line-height: 140px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-appearance: none;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: transparent;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border: 0;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: #000000;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;.ui-view-switcher .ui-view.custom-view 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 140px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 140px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top: -webkit-calc(50% - 70px);
+&nbsp;&nbsp;&nbsp;#moreoptionsPopup&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display:&nbsp;none;
 &nbsp;&nbsp;&nbsp;}
 }
 </pre>
 <li>Edit the JavaScript code to manage the option button events and other functionality:
 
 <pre class="prettyprint">
-(function()
-{
-&nbsp;&nbsp;&nbsp;var page = document.querySelector(&quot;#moreoptionsPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popup = page.querySelector(&quot;#moreoptionsPopup&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = page.querySelector(&quot;#moreoptionsDrawer&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler = page.querySelector(&quot;.ui-more&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elPageIndicator = page.querySelector(&quot;#pageIndicator&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views = page.querySelectorAll(&quot;.ui-view&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewSwitcherElement = page.querySelector(&quot;#viewSwitcher&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawerMoreHelper;
-
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagebeforeshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var popupWidget,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator = tau.widget.PageIndicator(elPageIndicator, { numberOfPages: 5 }),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastActiveIndex,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewSwitcher;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator.setActive(1);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tau.support.shape.circle) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawerMoreHelper = tau.helper.DrawerMoreStyle.create(drawer, 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler: &quot;.ui-more&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewSwitcher = tau.widget.ViewSwitcher(viewSwitcherElement);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Using a rotary event */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.addEventListener(&quot;rotarydetent&quot;, function(event) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var direction = event.detail.direction,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;activeIndex = viewSwitcher.getActiveIndex();
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;event.stopPropagation();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(direction === &quot;CW&quot;) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Right */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (activeIndex &lt; views.length - 1) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewSwitcher.setActiveIndex(activeIndex + 1);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Left */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (activeIndex &gt; 0) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewSwitcher.setActiveIndex(activeIndex - 1);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastActiveIndex = activeIndex;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Shape is rect */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popupWidget = tau.widget.Popup(popup);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.event.on(handler, &quot;click&quot;, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popupWidget.open();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, false);
+(function(){
+&nbsp;&nbsp;&nbsp;var&nbsp;page&nbsp;=&nbsp;document.querySelector(&quot;#moreoptionsPage&quot;),
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popup&nbsp;=&nbsp;page.querySelector(&quot;#moreoptionsPopup&quot;),
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler&nbsp;=&nbsp;page.querySelector(&quot;.ui-more&quot;),
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer&nbsp;=&nbsp;page.querySelector(&quot;#moreoptionsDrawer&quot;),
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selector&nbsp;=&nbsp;page.querySelector(&quot;#selector&quot;),
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;helper,
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clickHandlerBound;
+
+&nbsp;&nbsp;&nbsp;function&nbsp;clickHandler(event)&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.openPopup(popup);
+&nbsp;&nbsp;&nbsp;}
+&nbsp;&nbsp;&nbsp;page.addEventListener(&nbsp;&quot;pagebeforeshow&quot;,&nbsp;function()&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(tau.support.shape.circle)&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;helper&nbsp;=&nbsp;tau.helper.DrawerMoreStyle.create(drawer,&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler:&nbsp;&quot;.drawer-handler&quot;
+&nbsp;&nbsp;&nbsp;&nbsp;});
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Shape&nbsp;is&nbsp;square
+&nbsp;&nbsp;&nbsp;&nbsp;clickHandlerBound&nbsp;=&nbsp;clickHandler.bind(null);
+&nbsp;&nbsp;&nbsp;&nbsp;handler.addEventListener(&quot;click&quot;,&nbsp;clickHandlerBound);
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewSwitcherElement.addEventListener(&quot;viewchange&quot;, function(event) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var index = event.detail.index;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (index &lt; 0 || index &gt; views.length - 1) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator.setActive(event.detail.index);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, false);
 &nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagehide&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tau.support.shape.circle) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (drawerMoreHelper) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawerMoreHelper.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
+&nbsp;&nbsp;&nbsp;page.addEventListener(&nbsp;&quot;pagebeforehide&quot;,&nbsp;function()&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(tau.support.shape.circle)&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler.removeEventListener(&quot;click&quot;,&nbsp;clickHandlerBound);
+&nbsp;&nbsp;&nbsp;&nbsp;helper.destroy();
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 &nbsp;&nbsp;&nbsp;});
 })();
@@ -262,4 +175,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
index 1a76baa..71bb9fb 100755 (executable)
@@ -21,6 +21,7 @@
                        <topic href="html/web/tau/footerbutton_ww.htm" label="Footer Button"></topic>
                        <topic href="html/web/tau/thumbnail_ww.htm" label="Thumbnail"></topic>          
                        <topic href="html/web/tau/popup_ww.htm" label="Popup"></topic>
+                       <topic href="html/web/tau/indexscrollbar_ww.htm" label="Index Scroll Bar"></topic>
                </topic>
                <topic href="html/web/tau/accessibility_w.htm" label="Accessibility"></topic>
                <topic href="html/web/tau/globalization_w.htm" label="Globalization"></topic>
index 07295ab..c559f21 100644 (file)
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_button.htm">Button</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_checkbox.htm">CheckboxRadio</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_circleprogressbar.htm">CircleProgressBar</a></li>
+                                               <li><a href="ui_fw_api/Wearable_UIComponents/wearable_circularindexscrollbar.htm">CircularIndexScrollBar</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_drawer.htm">Drawer</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_indexscrollbar.htm">IndexScrollBar</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_list.htm">List</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_processing.htm">Processing</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_progress.htm">Progress</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_sectionchanger.htm">SectionChanger</a></li>
+                                               <li><a href="ui_fw_api/Wearable_UIComponents/wearable_selector.htm">Selector</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_slider.htm">Slider</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_snaplistview.htm">SnapListView</a></li>
                                                <li><a href="ui_fw_api/Wearable_UIComponents/wearable_swipelist.htm">SwipeList</a></li>
index 1d7f844..44fde12 100755 (executable)
@@ -24,7 +24,7 @@
                <td class="note">This component is supported since <strong>2.3</strong>.</td>
        </tr>
        <tr>
-               <td class="note">This component is optimized for round UI. The component may not be shown properly in rectangular UI.</td>
+               <td class="note">This component is optimized for circular UI. The component may not be shown properly in rectangular UI.</td>
        </tr>
        </tbody>
 </table>
diff --git a/org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circularindexscrollbar.htm b/org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circularindexscrollbar.htm
new file mode 100755 (executable)
index 0000000..43debd5
--- /dev/null
@@ -0,0 +1,324 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+       <script type="text/javascript" src="../snippet.js"></script>
+       <meta http-equiv="content-type" content="text/html; charset=utf-8">
+       <link href="../styles.css" rel="StyleSheet" type="text/css">
+       <link href="../snippet.css" rel="StyleSheet" type="text/css">
+       <title>Circular Index Scroll Bar</title>
+</head>
+<body onload="prettyPrint()" id="content">
+<h1>Circular Index Scroll Bar</h1>
+
+<p>Circular index scroll bar component shows on the screen a circular indicator with an index and support to scroll.</p>
+<p>If you spin the rotary quickly, an indicator will be displayed and you can move in an index unit.</p>
+<p>The indicator will disappear if no rotary action is detected for a second.</p>
+<p>This component fires a select event when the index characters are selected.</p>
+
+<table class="note">
+       <tbody>
+       <tr>
+               <th class="note">Note</th>
+       </tr>
+       <tr>
+               <td class="note">This component is supported since <strong>2.3</strong>.</td>
+       </tr>
+       <tr>
+               <td class="note">This component is optimized for circular UI. The component may not be shown properly in rectangular UI.</td>
+       </tr>
+       <tr>
+               <td class="note">If you want information for support to both circular and rectangular UI, see <a href="../../../../org.tizen.ui.guides/html/web/tau/indexscrollbar_ww.htm">here</a></td>
+       </tr>
+       </tbody>
+</table>
+
+<h2>Table of Contents</h2>
+<ol class="toc">
+
+               <li><a href="#manual-constructor0.6990520032122731">How to create circular index scroll bar</a>
+
+               </li>
+
+               <li><a href="#options-list">Options</a>
+
+               </li>
+
+               <li><a href="#events-list">Events</a>
+
+               </li>
+
+               <li><a href="#methods-list">Methods</a>
+
+                               <ol class="toc">
+
+                                               <li><a href="#method-value">value</a>
+                                               </li>
+
+                               </ol>
+
+               </li>
+
+</ol>
+
+
+<h2><a id='manual-constructor0.6990520032122731'></a>How to create circular index scroll bar</h2>
+
+<p>For manual creation of circular index scroll bar, you can use constructor from <strong>tau</strong> namespace:</p>
+
+<pre class="prettyprint">var circularindexElement = document.getElementById('circularindexscrollbar'),
+    circularindexscrollbar = tau.widget.CircularIndexScrollbar(circularindexElement, {index: "A,B,C"});
+</pre>
+
+<p>Constructor has one require parameter <strong>element</strong> which are base <strong>HTMLElement</strong> to create component. We recommend get this element by method <em>document.getElementById</em>.</p>
+<p>Second parameter is <strong>options</strong> and it is a object with options for component.</p>
+
+<p>To add a circular index scroll bar component to the application, use the following code:</p>
+
+<pre class="prettyprint"> &lt;div id="indexscrollbar" class="ui-circularindexscrollbar" data-index="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"&gt;&lt;/div&gt;
+ &lt;script&gt;
+     (function() {
+         var elem = document.getElementById("indexscrollbar");
+         tau.widget.CircularIndexScrollbar(elem);
+         elem.addEventListener("select", function( event ) {
+             var index = event.detail.index;
+             // Print selected index
+             console.log(index);
+         });
+     }());
+ &lt;/script&gt;
+</pre>
+
+<p>The index value can be retrieved by accessing event.detail.index property.</p>
+
+<p>In the following example, the list scrolls to the position of the list item defined using the li-divider class which is selected by the circular index scroll bar:</p>
+
+<pre class="prettyprint">
+ &lt;div id="pageIndexScrollbar" class="ui-page"&gt;
+       &lt;header class="ui-header"&gt;
+               &lt;h2 class="ui-title"&gt;CircularIndexScrollbar&lt;/h2&gt;
+       &lt;/header&gt;
+       &lt;div id="indexscrollbar" class="ui-circularindexscrollbar"&gt;&lt;/div&gt;
+       &lt;section class="ui-content"&gt;
+               &lt;ul class="ui-listview" id="list1"&gt;
+                       &lt;li class="li-divider"&gt;A&lt;/li&gt;
+                       &lt;li&gt;Anton&lt;/li&gt;
+                       &lt;li&gt;Arabella&lt;/li&gt;
+                       &lt;li&gt;Art&lt;/li&gt;
+                       &lt;li class="li-divider"&gt;B&lt;/li&gt;
+                       &lt;li&gt;Barry&lt;/li&gt;
+                       &lt;li&gt;Bibi&lt;/li&gt;
+                       &lt;li&gt;Billy&lt;/li&gt;
+                       &lt;li&gt;Bob&lt;/li&gt;
+                       &lt;li class="li-divider"&gt;D&lt;/li&gt;
+                       &lt;li&gt;Daisy&lt;/li&gt;
+                       &lt;li&gt;Derek&lt;/li&gt;
+                       &lt;li&gt;Desmond&lt;/li&gt;
+               &lt;/ul&gt;
+       &lt;/section&gt;
+&lt;/div&gt;
+&lt;script&gt;
+(function() {
+       var page = document.getElementById("pageIndexScrollbar"),
+               indexScrollbar;
+
+       page.addEventListener("pageshow", function(ev) {
+               var indexScrollbarElement = document.getElementById("indexscrollbar"),
+                       listviewElement = document.getElementById("list1"),     // list
+                       listDividers = listviewElement.getElementsByClassName("li-divider"),    // list dividers
+                       dividers = {},  // collection of list dividers
+                       indices = [],   // index list
+                       scroller,
+                       divider,
+                       i, idx;
+
+               // For all list dividers,
+               for(i = 0; i < listDividers.length; i++) {
+                       // Add the list divider elements to the collection
+                       divider = listDividers[i];
+                       idx = divider.innerText;
+                       dividers[idx] = divider;
+
+                       // Add the index to the index list
+                       indices.push(idx);
+               }
+
+               scroller = tau.util.selectors.getScrollableParent(listviewElement);
+
+               // Create CircularIndexScrollbar
+               indexScrollbar = new tau.widget.CircularIndexScrollbar(indexScrollbarElement, {index: indices});
+
+               // Add SnapListview item "selected" event handler.
+               // You should update the information for current index
+               listviewElement.addEventListener("selected", function (ev) {
+                       var indexValue = ev.target.textContent[0];
+                       indexScrollbar.value(indexValue);
+               });
+
+               // Add IndexScrollbar index "select" event handler.
+               indexScrollbarElement.addEventListener("select", function (ev) {
+                       var divider,
+                               idx = ev.detail.index;
+
+                       divider = dividers[idx];
+                       if(divider && scroller) {
+                               // Scroll to the li-divider element
+                               scroller.scrollTop = divider.offsetTop - scroller.offsetTop;
+                       }
+               });
+       });
+
+       page.addEventListener("pagehide", function(ev) {
+               indexScrollbar.destroy();
+       });
+} ());
+&lt;/script&gt;
+</pre>
+
+
+
+       <h2><a id="options-list"></a>Options</h2>
+
+       <table>
+               <tbody>
+               <tr>
+                       <th>Option</th>
+                       <th>Input type</th>
+                       <th>Default value</th>
+                       <th>Description</th>
+               </tr>
+
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">delimiter</span></td>
+                               <td class="option">string</td>
+                               <td class="option">&quot;,&quot;</td>
+                               <td class="option">delimiter in index</td>
+                       </tr>
+
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">index</span></td>
+                               <td class="option">string | Array</td>
+                               <td class="option">&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;,(...),&quot;V&quot;,&quot;W&quot;,&quot;X&quot;,&quot;Y&quot;,&quot;Z&quot;,&quot;1&quot;</td>
+                               <td class="option">indices list</td>
+                       </tr>
+
+               </tbody>
+       </table>
+
+
+       <h2><a id="events-list"></a>Events</h2>
+
+       <table>
+               <tbody>
+               <tr>
+                       <th>Name</th>
+                       <th>Description</th>
+               </tr>
+
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">select</span></td>
+                               <td><p>Event triggered after select index by user<p>This event has "detail" object and there is "index" property in the "detail"<p>
+                                       detail.index provides information for selected index.</td>
+                       </tr>
+               </tbody>
+       </table>
+
+
+
+       <h2><a id="methods-list"></a>Methods</h2>
+
+       <h3>Summary</h3>
+       <table class="informaltable">
+               <thead>
+               <tr>
+                       <th>Method</th>
+                       <th>Description</th>
+               </tr>
+               </thead>
+               <tbody>
+
+
+                               <tr>
+                                       <td>
+                                               <pre class="intable prettyprint">string <a href="#method-value">value</a> (  ) </pre>
+                                       </td>
+                                       <td><p>Get or Set index of the circular index scroll bar</p></td>
+                               </tr>
+
+
+
+
+               </tbody>
+       </table>
+       <dl>
+
+                               <dt class="method"><code><b><span class="methodName"
+                                                                                                                                  id="method-value">value</span></b></code></dt>
+                               <dd>
+                                       <div class="brief">
+                                               <p>Get or Set index of the circular index scroll bar</p>
+                                       </div>
+                                       <div class="synopsis">
+                                               <pre class="signature prettyprint">string value ( ) </pre>
+                                       </div>
+
+                                       <div class="description">
+                                               <p>
+                                                       <p>Return current index or set the index</p>
+
+
+                                               </p>
+                                       </div>
+
+
+
+                                       <div class="returntype">
+                                               <p><span class="return">Return value:</span></p>
+
+                                                       <table>
+                                                               <tbody>
+                                                               <tr>
+                                                                       <th>Type</th>
+                                                                       <th>Description</th>
+                                                               </tr>
+                                                               <tr>
+                                                                       <td>string</td>
+                                                                       <td>In get mode return current index value</td>
+                                                               </tr>
+                                                               </tbody>
+                                                       </table>
+
+
+                                       </div>
+                                       
+                                               <div class="example">
+                                                       <span class="example"><p>Code
+                                                               example:</p><p></p></span>
+                                                       <pre name="code" class="examplecode
+                                                       prettyprint">
+    &lt;div id="circularindexscrollbar"&gt;&lt;/div&gt;
+    &lt;script&gt;
+        var circularindexElement = document.getElementById("circularindexscrollbar"),
+            circularIndexScrollbar = tau.widget.CircularIndexScrollbar(circularindexElement),
+        // return current index value
+        value = circularIndexScrollbar.value();
+        // sets the index value
+        circularIndexScrollbar.value("C");
+    &lt;/script&gt;
+</pre>
+                                               </div>
+
+                               </dd>
+
+               </dl>
+
+
+<div id="footer">
+       <hr size="1">
+       <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a
+                       href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution
+               3.0</a> and all of the Code Examples contained herein are licensed under <a
+                       href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the
+               <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+</div>
+</body>
+</html>
index ce83dad..bbdaf66 100755 (executable)
@@ -1,11 +1,10 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <html>
-<head>
-       <script type="text/javascript" src="../snippet.js"></script>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link href="../styles.css" rel="StyleSheet" type="text/css" />
-       <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-       <title>Index Scroll Bar</title>
+<head><script type="text/javascript" src="../snippet.js"></script>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <link href="../styles.css" rel="StyleSheet" type="text/css">
+<link href="../snippet.css" rel="StyleSheet" type="text/css">
+  <title>Index Scroll Bar</title>
 </head>
 
 <body onload="prettyPrint()" id="content">
@@ -13,7 +12,7 @@
 
 <h1>Index Scroll Bar</h1>
 
-<p>The index scroll bar component shows on the screen a scrollbar with indices, and fires a <span style="font-family: Courier New,Courier,monospace">select</span> event when the index characters are clicked. The following table describes the supported index scroll bar APIs.</p>
+<p>The index scroll bar component shows on the screen a scroll bar with indices, and fires a <span style="font-family: Courier New,Courier,monospace">select</span> event when the index characters are clicked. The following table describes the supported index scroll bar APIs.</p>
 
 <table class="note">
        <tbody>
@@ -21,7 +20,7 @@
                <th class="note">Note</th>
        </tr>
        <tr>
-               <td class="note">This component is released for <strong>2.3 rectangular UI</strong>. When you create this component in round screen, layout can be shown broken because screen hide index scrollbar. In that case, we recommend to use <a href="widget_circularindexscrollbar.htm">Circular IndexScrollbar</a>.</td>
+               <td class="note">This component is released for <strong>2.3 rectangular UI</strong>. When you create this component in circular screen, layout can be shown broken because screen hide index scroll bar. In that case, we recommend to use <a href="wearable_circularindexscrollbar.htm">Circular Index Scroll Bar</a>.</td>
        </tr>
        </tbody>
 </table>
@@ -29,7 +28,7 @@
 <h2>Table of Contents</h2>
 <ol class="toc">
        
-               <li><a href="#manual-constructor0.6990520032122731">Manual constructor</a>
+               <li><a href="#manual-constructor0.6990520032122731">How to create index scroll bar</a>
                        
                </li>
        
 </ol>
 
 
-<h2><a id='manual-constructor0.6990520032122731'></a>Manual constructor</h2>
+<h2><a id='manual-constructor0.6990520032122731'></a>How to create index scroll bar</h2>
 
-<p>For manual creation of IndexScrollbar, you can use constructor from <strong>tau</strong> namespace:</p>
+<p>For manual creation of Index Scroll Bar, you can use constructor from <strong>tau</strong> namespace:</p>
 <pre class="prettyprint">var indexElement = document.getElementById('indexscrollbar'),
     indexscrollbar = tau.widget.IndexScrollbar(indexElement);
 </pre>
-<p>To add an IndexScrollbar component to the application, use the following code:</p>
+<p>To add an index scroll bar component to the application, use the following code:</p>
 <pre class="prettyprint">
 &lt;div id=&quot;foo&quot; class=&quot;ui-indexscrollbar&quot; 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-index=&quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z&quot;&gt;&lt;/div&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indices.push(idx);
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Change the data-index attribute to the indexscrollbar element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* before initializing IndexScrollbar component */
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Change the data-index attribute to the index scroll bar element */
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* before initializing index scroll bar component */
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elem.setAttribute(&quot;data-index&quot;, indices.join(&quot;,&quot;));
 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create index scroll bar */
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyItem: keyItem
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Update the data-index attribute to the indexscrollbar element, with the index list above */
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Update the data-index attribute to the index scroll bar element, with the index list above */
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elisb.setAttribute(&quot;data-index&quot;, indexData.firstIndex);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create IndexScrollbar */
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create index scroll bar */
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isb = new tau.IndexScrollbar(elisb, 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index: indexData.firstIndex, supplementaryIndex: function(firstIndex) 
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">moreChar</span></td>
                                <td class="option">string</td>
                                <td class="option">&quot;*&quot;</td>
-                               <td class="option">more character in indexscrollbar</td>
+                               <td class="option">more character in index scroll bar</td>
                        </tr>
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">delimiter</span></td>
        </table>
 
 
+
+       
+
+
+
  <div id="footer"> 
    <hr size="1" /> 
    <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
index d45ee78..696d78d 100755 (executable)
@@ -2,18 +2,18 @@
 <html>
 <head>
        <script type="text/javascript" src="../snippet.js"></script>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link href="../styles.css" rel="StyleSheet" type="text/css" />
-       <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-       <title>PageIndicator</title>
+       <meta http-equiv="content-type" content="text/html; charset=utf-8">
+       <link href="../styles.css" rel="StyleSheet" type="text/css">
+       <link href="../snippet.css" rel="StyleSheet" type="text/css">
+       <title>Page Indicator</title>
 </head>
 <body onload="prettyPrint()" id="content">
-<h1>PageIndicator</h1>
+<h1>Page Indicator</h1>
 
-<p>PageIndicator component presents as a dot-typed indicator.<br>
-The highlighted dots represent the corresponing active pages.</p>
-<p>According to option, the maximum number of dots and the number of pages to be linked can be set.
-<br>If the number of linked pages is more than dots which can be displayed, a central dot is assigned to multiple pages.</p>
+<p>Page indicator component presents as a dot-typed indicator.</p>
+<p>The highlighted dots represent the corresponing active pages.</p>
+<p>According to option, the maximum number of dots and the number of pages to be linked can be set.</p>
+<p>If the number of linked pages is more than dots which can be displayed, a central dot is assigned to multiple pages.</p>
 
 <table class="note">
        <tbody>
@@ -29,7 +29,7 @@ The highlighted dots represent the corresponing active pages.</p>
 <h2>Table of Contents</h2>
 <ol class="toc">
 
-               <li><a href="#manual-constructor">How to Create PageIndicator</a>
+               <li><a href="#manual-constructor">How to Create page indicator</a>
 
                </li>
 
@@ -49,9 +49,9 @@ The highlighted dots represent the corresponing active pages.</p>
 
 </ol>
 
-<h2><a id='manual-constructor'></a>How to Create PageIndicator</h2>
+<h2><a id='manual-constructor'></a>How to Create page indicator</h2>
 
-<p>For manual creation of PageIndicator, you can use constructor from <strong>tau</strong> namespace:</p>
+<p>For manual creation of page indicator, you can use constructor from <strong>tau</strong> namespace:</p>
 
 <pre class="prettyprint">var elPageIndicator = document.getElementById("pageindicator"),
     pageIndicator = tau.widget.PageIndicator(elPageIndicator, { numberOfPages : 5 });
@@ -59,7 +59,7 @@ The highlighted dots represent the corresponing active pages.</p>
 
 <p>Constructor has two require parameter <strong>element</strong> which are base <strong>HTMLElement</strong> to create component. We recommend get this element by method <em>document.getElementById</em>. Second parameter is <strong>options</strong> and it is a object with options for component. numberOfPages means the number of pages to be linked and it is mandatory.</p>
 
-<p>To add an PageIndicator component to the application, use the following code:</p>
+<p>To add an page indicator component to the application, use the following code:</p>
 
 <pre class="prettyprint"> &lt;div id=&quot;pageIndicator&quot; class=&quot;ui-page-indicator&quot;&gt;&lt;/div&gt;
  &lt;script&gt;
@@ -72,7 +72,7 @@ The highlighted dots represent the corresponing active pages.</p>
 
 <p>index value means index of active page.</p>
 
-<p>In the following example, the change of page is indicated in PageIndicator component by using PageIndicator with <a href="widget_section_changer.htm">SectionChanger</a> component.</p>
+<p>In the following example, the change of page is indicated in page indicator component by using page indicator with <a href="widget_section_changer.htm">section changer</a> component.</p>
 
 <pre class="prettyprint">
 &lt;div id=&quot;pageIndicatorPage&quot; class=&quot;ui-page&quot;&gt;
@@ -158,7 +158,7 @@ pageIndicator =  tau.widget.PageIndicator(elPageIndicator, { numberOfPages: 5, m
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">maxPage</span></td>
                                <td class="option">number</td>
-                               <td class="option">5</td>
+                               <td class="option">5(linear), 60(circular)</td>
                                <td class="option"><p>the maximum number of pages(dots) which can be displayed on screen</p></td>
                        </tr>
 
@@ -169,6 +169,21 @@ pageIndicator =  tau.widget.PageIndicator(elPageIndicator, { numberOfPages: 5, m
                                <td class="option">the number of pages to be linked <strong>(mandatory)</strong></td>
                        </tr>
 
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">layout</span></td>
+                               <td class="option">string</td>
+                               <td class="option">"linear"</td>
+                               <td class="option">layout type of page indicator. The component supports "linear" and "circular".</strong></td>
+                       </tr>
+
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">intervalAngle</span></td>
+                               <td class="option">number</td>
+                               <td class="option">6</td>
+                               <td class="option">angle between each dot in page indicator. This option is used only for circular type.</strong></td>
+                       </tr>
+
+
                </tbody>
        </table>
 <br>
diff --git a/org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_selector.htm b/org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_selector.htm
new file mode 100755 (executable)
index 0000000..70a861e
--- /dev/null
@@ -0,0 +1,396 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+       <script type="text/javascript" src="../snippet.js"></script>
+       <meta http-equiv="content-type" content="text/html; charset=utf-8">
+       <link href="../styles.css" rel="StyleSheet" type="text/css">
+       <link href="../snippet.css" rel="StyleSheet" type="text/css">
+       <title>Selector</title>
+</head>
+<body onload="prettyPrint()" id="content">
+<h1>Selector</h1>
+
+<p>Selector is component for select specific item to use various methods that drag, click and rotary.<br>
+Selector component has been used in more options commonly but If you want to use other situation, you can use this component as standalone component in everywhere.<br>
+Selector component was consisted as selector element, indicator, indicator arrow and item elements.<br>
+Each items can have the specific degree, radius and class. Item must have a class for selector query the items. Default selector is '.ui-item' but If you want to change this selector, you can set the custom selector to use itemSelector option.<br>
+Selector component has made layers automatically. Layer has items and you can set items number on one layer.<br>
+Indicator is indicator that located center of Selector. TAU provide default indicator style and function. But, If you want to change indicator style and function, you can make the custom indicator and set your indicator for operate with Selector.<br>
+Indicator arrow is special indicator style that has the arrow. It is used for provide more correct indicate information to user. Also, you can make the custom indicator arrow and set your custom indicator arrow for operate with Selector. Selector component control arrow's rotate to indicate active item.</p>
+
+<h2>Table of Contents</h2>
+<ol class="toc">
+       
+               <li><a href="#html-example0.9038220448419452">How to Create Selector</a>
+                       
+               </li>
+       
+               <li><a href="#options0.08969108131714165">Options</a>
+                       
+               </li>
+       
+               <li><a href="#events-list">Events</a>
+                       
+               </li>
+       
+               <li><a href="#methods-list">Methods</a>
+                       
+                               <ol class="toc">
+                                       
+                                               <li><a href="#method-changeItem">changeItem</a>
+                                               </li>
+                                       
+                                               <li><a href="#method-addItem">addItem</a>
+                                               </li>
+                                       
+                                               <li><a href="#method-removeItem">removeItem</a>
+                                               </li>
+                                       
+                               </ol>
+                       
+               </li>
+       
+</ol>
+
+<h2><a id='html-example0.9038220448419452'>How to Create Selector</a></h2>
+<h3>HTML example</h3>
+
+<pre class="prettyprint">         &lt;div class="ui-page ui-page-active" id="main"&gt;
+             &lt;div id="selector" class="ui-selector"&gt;
+                 &lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-x-icon" data-title="X Icon"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-fail-icon" data-title="Fail"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
+                 &lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
+             &lt;/div&gt;
+         &lt;/div&gt;
+</pre>
+
+<h3><a id='manual-constructor0.33475646935403347'></a>Manual constructor</h3>
+
+<pre class="prettyprint">
+(function() {
+       var page = document.getElementById("selectorPage"),
+               selector = document.getElementById("selector"),
+               clickBound;
+
+       function onClick(event) {
+               var activeItem = selector.querySelector(".ui-item-active");
+               //console.log(activeItem.getAttribute("data-title"));
+       }
+       page.addEventListener("pagebeforeshow", function() {
+               clickBound = onClick.bind(null);
+               tau.widget.Selector(selector);
+               selector.addEventListener("click", clickBound, false);
+       });
+       page.addEventListener("pagebeforehide", function() {
+               selector.removeEventListener("click", clickBound, false);
+       });
+})();
+</pre>
+
+<h2><a id='options0.08969108131714165'></a>Options</h2>
+
+       <table>
+               <tbody>
+               <tr>
+                       <th>Option</th>
+                       <th>Input type</th>
+                       <th>Default value</th>
+                       <th>Description</th>
+               </tr>
+               
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">data-item-selector</span></td>
+                               <td class="option">String</td>
+                               <td class="option">".ui-item"</td>
+                               <td class="option"><p>Selector item selector that style is css selector.</p></td>
+                       </tr>
+               
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">data-item-degree</span></td>
+                               <td class="option">Number</td>
+                               <td class="option">30</td>
+                               <td class="option">The angle between each items.</td>
+                       </tr>
+               
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">data-item-radius</span></td>
+                               <td class="option">Number</td>
+                               <td class="option">-1</td>
+                               <td class="option">The radius between item and center. Default value is determined by Selector layout.</td>
+                       </tr>
+               
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">data-indicator-selector</span></td>
+                               <td class="option">String</td>
+                               <td class="option">".ui-selector-indicator"</td>
+                               <td class="option">Selector indicator selector that style is css selector.</td>
+                       </tr>
+               
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">data-indicator-arrow-selector</span></td>
+                               <td class="option">String</td>
+                               <td class="option">".ui-selector-indicator-arrow"</td>
+                               <td class="option">Selector indicator arrow selector that style is css style..</td>
+                       </tr>
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">data-indicator-auto-control</span></td>
+                               <td class="option">Boolean</td>
+                               <td class="option">true</td>
+                               <td class="option">Indicator auto control switch. If you want to control your indicator manually, change this options to false.</td>
+                       </tr>
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">data-max-item-number</span></td>
+                               <td class="option">Nubmer</td>
+                               <td class="option">11</td>
+                               <td class="option">Max item number on one layer. If you change the itemDegree, we recommend to consider to modify this value for fit your Selector layout.</td>
+                       </tr>
+               </tbody>
+       </table>
+
+       <h2><a id="events-list"></a>Events</h2>
+
+       <table>
+               <tbody>
+               <tr>
+                       <th>Name</th>
+                       <th>Description</th>
+               </tr>
+               
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">selectoritemchange</span></td>
+                               <td><p>Triggered when the active item is changed. Target is active item element.<br />This event has detail information.<br />- layer: Layer element on active item<br />- layerIndex: Layer's index on active item<br />- index: Item index on layer.<br />- title: If Item has 'data-title' attribute, this value is that.</p></td>
+                       </tr>
+               
+                       <tr>
+                               <td class="option"><span style="font-family: Courier New,Courier,monospace">selectorlayerchange</span></td>
+                               <td><p>Triggered when the active layer is changed. Target is active layer element.<br />This event has detail information.<br />- index: Layer index.</p></td>
+                       </tr>
+               
+               </tbody>
+       </table>
+
+
+
+       <h2><a id="methods-list"></a>Methods</h2>
+
+       <h3>Summary</h3>
+       <table class="informaltable">
+               <thead>
+               <tr>
+                       <th>Method</th>
+                       <th>Description</th>
+               </tr>
+               </thead>
+               <tbody>
+                               <tr>
+                                       <td>
+                                               <pre class="intable prettyprint"><a href="#method-changeItem">changeItem</a> ( Number index ) </pre>
+                                       </td>
+                                       <td><p>Change active item on active layer</p></td>
+                               </tr>
+                               <tr>
+                                       <td>
+                                               <pre class="intable prettyprint"><a href="#method-addItem">addItem</a> ( HTMLElement item, Number index ) </pre>
+                                       </td>
+                                       <td><p>Add new item</p></td>
+                               </tr>
+                               <tr>
+                                       <td>
+                                               <pre class="intable prettyprint"><a href="#method-removeItem">removeItem</a> ( Number index ) </pre>
+                                       </td>
+                                       <td><p>Remove item on specific layer</p></td>
+                               </tr>
+               </tbody>
+       </table>
+       <dl>
+                       
+                               <dt class="method"><code><b><span class="methodName"
+                                                                                                                                  id="method-changeItem">changeItem</span></b></code></dt>
+                               <dd>
+                                       <div class="brief">
+                                               <p>Change active item on active layer</p>
+                                       </div>
+                                       <div class="synopsis">
+                                               <pre class="signature prettyprint">changeItem ( Number index) </pre>
+                                       </div>
+                                       
+                                       <div class="description">
+                                               <p>
+                                                       
+                                               </p>
+                                       </div>
+                                       
+                                       <div class="parameters">
+                                               <p><span class="param">Parameters:</span></p>
+                                       <table>
+                                       <tbody>
+                                       <tr>
+                                               <th>Parameter</th>
+                                               <th>Type</th>
+                                               <th>Required / optional</th>
+                                               <th>Default value</th>
+                                               <th>Description</th>
+                                       </tr>
+                                       
+                                       
+                                       <tr>
+                                               <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
+                                               <td>Number</td>
+                                               <td>required</td>
+                                               <td></td>
+                                               <td></td>
+                                       </tr>
+                                       
+                                       
+                                       </tbody>
+                                       </table>
+                                       </div>
+                                       
+                                       <div class="returntype">
+                                               <p><span class="return">Return value:</span></p>
+                                               
+                                               
+                                                       No Return Value
+                                               
+                                       </div>
+                                       
+                               </dd>
+                       
+               
+                       
+                               <dt class="method"><code><b><span class="methodName"
+                                                                                                                                  id="method-addItem">addItem</span></b></code></dt>
+                               <dd>
+                                       <div class="brief">
+                                               <p>Add new item</p>
+                                       </div>
+                                       <div class="synopsis">
+                                               <pre class="signature prettyprint">addItem ( HTMLElement item, Number index) </pre>
+                                       </div>
+                                       
+                                       <div class="description">
+                                               <p>
+                                                       
+                                               </p>
+                                       </div>
+                                       
+                                       <div class="parameters">
+                                               <p><span class="param">Parameters:</span></p>
+                                       <table>
+                                       <tbody>
+                                       <tr>
+                                               <th>Parameter</th>
+                                               <th>Type</th>
+                                               <th>Required / optional</th>
+                                               <th>Default value</th>
+                                               <th>Description</th>
+                                       </tr>
+                                       
+                                       
+                                       <tr>
+                                               <td><span style="font-family: Courier New,Courier,monospace">item</span></td>
+                                               <td>HTMLElement</td>
+                                               <td>required</td>
+                                               <td></td>
+                                               <td></td>
+                                       </tr>
+                                       
+                                       <tr>
+                                               <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
+                                               <td>Number</td>
+                                               <td>optional</td>
+                                               <td>Last index</td>
+                                               <td></td>
+                                       </tr>
+                                       
+                                       
+                                       </tbody>
+                                       </table>
+                                       </div>
+                                       
+                                       <div class="returntype">
+                                               <p><span class="return">Return value:</span></p>
+                                               
+                                               
+                                                       No Return Value
+                                               
+                                       </div>
+                                       
+                               </dd>
+                       
+               
+                       
+                               <dt class="method"><code><b><span class="methodName"
+                                                                                                                                  id="method-removeItem">removeItem</span></b></code></dt>
+                               <dd>
+                                       <div class="brief">
+                                               <p>Remove item on specific layer</p>
+                                       </div>
+                                       <div class="synopsis">
+                                               <pre class="signature prettyprint">removeItem ( Number index) </pre>
+                                       </div>
+                                       
+                                       <div class="description">
+                                               <p>
+                                                       
+                                               </p>
+                                       </div>
+                                       
+                                       <div class="parameters">
+                                               <p><span class="param">Parameters:</span></p>
+                                       <table>
+                                       <tbody>
+                                       <tr>
+                                               <th>Parameter</th>
+                                               <th>Type</th>
+                                               <th>Required / optional</th>
+                                               <th>Default value</th>
+                                               <th>Description</th>
+                                       </tr>
+                                       
+                                       
+                                       <tr>
+                                               <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
+                                               <td>Number</td>
+                                               <td>required</td>
+                                               <td></td>
+                                               <td></td>
+                                       </tr>
+                                       
+                                       
+                                       </tbody>
+                                       </table>
+                                       </div>
+                                       
+                                       <div class="returntype">
+                                               <p><span class="return">Return value:</span></p>
+                                               
+                                               
+                                                       No Return Value
+                                               
+                                       </div>
+                                       
+                               </dd>
+                       
+               
+               </dl>
+       
+
+<div id="footer">
+       <hr size="1">
+       <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a
+                       href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution
+               3.0</a> and all of the Code Examples contained herein are licensed under <a
+                       href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the
+               <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+</div>
+</body>
+</html>
index 9c25f1c..d7ee367 100755 (executable)
                                <td>Shows a control that indicates the progress percentage of an on-going operation by circular shape.</td>
                        </tr>
                        <tr>
+                               <td><a href="wearable_circularindexscrollbar.htm">Circular index scroll bar</a></td>
+                               <td>Shows a circular index scroll bar which uses rotary.</td>
+                       </tr>
+                       <tr>
                                <td><a href="wearable_drawer.htm">Drawer</a></td>
                                <td>Shows a panel that in the sub-layout on the left or right edge of screen.</td>
-                       
                        </tr>
                        <tr>
                                <td><a href="wearable_indexscrollbar.htm">Index scroll bar</a></td>
                                <td>Shows a control that you can use to scroll through multiple <span style="font-family: Courier New,Courier,monospace">&lt;section&gt;</span> elements.
                        </tr>
                        <tr>
+                               <td><a href="wearable_selector.htm">Selector</a></td>
+                               <td>Shows a selector that select items.</td>
+                       </tr>
+                       <tr>
                                <td><a href="wearable_slider.htm">Slider</a></td>
                                <td>Shows a control that you can use to change values by dragging a handle on a horizontal scale.</td>
                        </tr>
index 8903da7..b09b072 100644 (file)
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_button.htm" label="Button"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_checkbox.htm" label="CheckboxRadio"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_circleprogressbar.htm" label="CircleProgressBar"></topic>
+                               <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_circularindexscrollbar.htm" label="CircularIndexScrollBar"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_drawer.htm" label="Drawer"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_indexscrollbar.htm" label="IndexScrollBar"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_list.htm" label="List"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_processing.htm" label="Processing"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_progress.htm" label="Progress"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_sectionchanger.htm" label="SectionChanger"></topic>
+                               <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_selector.htm" label="Selector"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_slider.htm" label="Slider"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_snaplistview.htm" label="SnapListview"></topic>
                                <topic href="html/ui_fw_api/Wearable_UIComponents/wearable_swipelist.htm" label="SwipeList"></topic>