Author: ito
Date: Sun Jan 24 08:44:28 2010
New Revision: 902535
URL: http://svn.apache.org/viewvc?rev=902535&view=rev
Log:
CLEREZZA-77: documentation updated and add a title to the tab button
Removed:
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.rdf.ontologies/
Modified:
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/README.txt
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/src/main/resources/org/apache/clerezza/web/resources/style/staticweb/scripts/panel.js
Modified:
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/README.txt
URL:
http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/README.txt?rev=902535&r1=902534&r2=902535&view=diff
==============================================================================
---
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/README.txt
(original)
+++
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/README.txt
Sun Jan 24 08:44:28 2010
@@ -1,18 +1,24 @@
How to create a tab in the Panel:
-1. Add your panel to a page from type HeadedPage with the ResultDocModifier.
The
-first node of your panel must have an id, which identifies the tab.
+1. Add your panel tab to a page from type HeadedPage by using the
ResultDocModifier. The
+first node of your panel tab must have an id, which identifies the tab.
e.g.
resultDocModifier.addNodes2Elem("tx-panel-detail", <div id="my-tab">My
Tab</div>);
-2. The id of the first node of your panel can be used as style information for
the tab button.
-The following snippet adds an icon to the tab button (the size of an icon has
to be
-22x22):
+2. The id of the first node of your panel can be used as style information for
+the tab button and specifies the title of the tab button. The following snippet
+adds an icon to the tab button (the size of an icon has to be 22x22):
li.my-tab a {
background-image:url(/path/images/panel/standard-tab.png);
}
+3. Add a title to your panel tab by adding <h3>title</h3> to the node with id
+"tx-panel-title".
+
+e.g.
+resultDocModifier.addNodes2Elem("tx-panel-title", <h3>Digital Asset
Manager</h3>);
+
Modified:
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/src/main/resources/org/apache/clerezza/web/resources/style/staticweb/scripts/panel.js
URL:
http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/src/main/resources/org/apache/clerezza/web/resources/style/staticweb/scripts/panel.js?rev=902535&r1=902534&r2=902535&view=diff
==============================================================================
---
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/src/main/resources/org/apache/clerezza/web/resources/style/staticweb/scripts/panel.js
(original)
+++
incubator/clerezza/issues/CLEREZZA-77/org.apache.clerezza.web.resources.style/src/main/resources/org/apache/clerezza/web/resources/style/staticweb/scripts/panel.js
Sun Jan 24 08:44:28 2010
@@ -3,7 +3,7 @@
$("#tx-panel").hide();
} else {
$("#tx-panel-detail").children().each(function() {
- var li = $("<li/>").addClass($(this).attr("id"))
+ var li =
$("<li/>").addClass($(this).attr("id")).attr("title", $(this).attr("id"));
var aHref = $("<a/>").attr("href", "#").text("tab");
aHref.bind("click", function () {
if(!$(this).parent().hasClass("tx-active")) {