You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sylvain Wallez <sy...@apache.org> on 2003/10/24 15:54:40 UTC
Tooltips in Woody
Hi all,
I just added tooltip support in Woody (needed that quickly for my
project). For this, you just need to add a <wd:hint> in the widget
definition.
Example (from the updated "Various" sample):
<wd:booleanfield id="somebool">
<wd:label>Put me <em>on</em> or <em>off</em>.</wd:label>
<wd:hint>Yes, you can click!</wd:hint>
</wd:booleanfield>
The styling stylesheets put this hint into a "title" attribute on the
various inputs. However, I encountered some difficulties with IE: this
attribute is not displayed on dropdown menus and lists (i.e. the
<select> element) whereas Mozilla displays it cleanly. Any hint on this?
I also made provision for a <wd:help> element meant to produce a more
detailed help using a popup window. But the corresponding styling is not
yet implemented.
Enjoy,
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance - http://www.orixo.com