Author: ochikvina
Date: 2007-11-14 05:02:35 -0500 (Wed, 14 Nov 2007)
New Revision: 3979
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
Log:
http://jira.jboss.com/jira/browse/RF-1272- adding info about "for" attribute
Modified: trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-11-14 09:25:46 UTC
(rev 3978)
+++ trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-11-14 10:02:35 UTC
(rev 3979)
@@ -136,6 +136,30 @@
It is recommended to define parent component "id" for correction of
<property>tooltip</property> work.
</note>
+ <para>The attribute
<emphasis><property>"for"</property></emphasis>
is used for defining the
<emphasis><property>"id"</property></emphasis>
of an element a tooltip should be attached to. Look at the example:
+</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<div id="elementId">
+ <rich:toolTip for="elementId">Using a toolTip<rich:toolTip>
+ <p>The first simple example<p>
+</div>
+...
+<div id="elementId">
+ <p>The second simple example<p>
+</div>
+<rich:toolTip for="elementId">Using a toolTip<rich:toolTip>
+...
+]]></programlisting>
+
+ <para>Here, the attribute
<emphasis><property>"for"</property></emphasis>
of a <emphasis role="bold">
+ <property><rich:tooltip></property>
+ </emphasis> component is required. Whithout it an example doesn’t work because
HTML elements aren't presented in component tree built by facelets.
+ </para>
+
<para>
The
<emphasis><property>"mode"</property></emphasis>
attribute is provided you to control the way of data loading to
<property>tooltip</property>. It has following values:
<itemizedlist>