Author: vsiveton
Date: Mon Mar 30 21:11:27 2009
New Revision: 760176

URL: http://svn.apache.org/viewvc?rev=760176&view=rev
Log:
o improved features doc

Added:
    incubator/shindig/trunk/site/src/site/resources/developers/
    incubator/shindig/trunk/site/src/site/resources/developers/features/
    
incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml
   (with props)
    incubator/shindig/trunk/site/src/site/resources/images/samples/tab.png   
(with props)
Modified:
    incubator/shindig/trunk/site/src/site/xdoc/developers/features/index.xml

Added: 
incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml?rev=760176&view=auto
==============================================================================
--- 
incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml
 (added)
+++ 
incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml
 Mon Mar 30 21:11:27 2009
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- START SNIPPET: TabExample -->
+<Module>
+  <ModulePrefs title="TabExample" description="Tabs Example">
+    <Require feature="tabs"></Require>
+  </ModulePrefs>
+  <Content type="html">
+    <![CDATA[
+    <script type="text/javascript">
+      function onLoad(){ 
+        var tabset=new gadgets.TabSet();
+        tabset.alignTabs('left');        
+
+        
tabset.addTab("Tab1",{contentContainer:document.getElementById("tab1")});
+
+        
tabset.addTab("Tab2",{contentContainer:document.getElementById("tab2")});
+      } 
+  
+      gadgets.util.registerOnLoadHandler(onLoad);
+    </script>
+
+    <div id="tab1">
+      Contents go to Tab1
+    </div>
+
+    <div id="tab2">
+      Contents go to Tab2
+    </div>
+    ]]>
+  </Content>
+</Module>
+<!-- END SNIPPET: TabExample -->
\ No newline at end of file

Propchange: 
incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: 
incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/shindig/trunk/site/src/site/resources/images/samples/tab.png
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/site/src/site/resources/images/samples/tab.png?rev=760176&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
incubator/shindig/trunk/site/src/site/resources/images/samples/tab.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Modified: 
incubator/shindig/trunk/site/src/site/xdoc/developers/features/index.xml
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/site/src/site/xdoc/developers/features/index.xml?rev=760176&r1=760175&r2=760176&view=diff
==============================================================================
--- incubator/shindig/trunk/site/src/site/xdoc/developers/features/index.xml 
(original)
+++ incubator/shindig/trunk/site/src/site/xdoc/developers/features/index.xml 
Mon Mar 30 21:11:27 2009
@@ -29,7 +29,7 @@
   </properties>
   <body>
     <section name="Shindig Features">
-      <p>Current Shindig comes with several features.</p>
+      <p>Current Shindig comes with several features. We plan to include the 
Javascript API in the website.</p>
       <table>
         <thead>
           <tr>
@@ -182,8 +182,28 @@
       </table>
     </section>
 
+    <section name="Using Features">
+      <p>To use an above feature in your gadget, you need to specify the 
feature as
+        <i>&lt;require/&gt;</i> in <i>&lt;ModulePrefs/&gt;</i> and defining 
some Javascript codes to use it.</p>
+      <p>For example, if you plan to use the
+        <a 
href="http://svn.apache.org/repos/asf/incubator/shindig/trunk/features/src/main/javascript/features/tabs/feature.xml";>tabs/feature.xml</a>,
+        your gadget will look like the following:</p>
+      <macro name="snippet">
+        <param name="id" value="TabExample"/>
+        <param name="url" 
value="file:///D:/java/apache.org/incubator/shindig/trunk/site/src/site/resources/developers/features/simpletab.xml"/>
+      </macro>
+      <p>You could test your code using the Gadget testing container at: </p>
+      <img src="../../images/samples/tab.png" alt="Tab Example"/>
+    </section>
+
     <section name="Create Your Own Feature">
       <p><i>TODO, see <a href="../../community/index.html">How to 
Contribute</a> page</i></p>
     </section>
+
+    <section name="Resources">
+      <ul>
+        <li><a href="http://code.google.com/p/gadget-resources/";>The 
gadget-resources project</a></li>
+      </ul>
+    </section>
   </body>
 </document>


Reply via email to