Permalink
Browse files

Tooltip: Document content option changes.

  • Loading branch information...
1 parent 2c0eb09 commit eaea1d8562f8dfd08086c4af950454ad236b383e @scottgonzalez scottgonzalez committed Aug 31, 2012
Showing with 11 additions and 5 deletions.
  1. +11 −5 entries/tooltip.xml
View
16 entries/tooltip.xml
@@ -20,18 +20,24 @@
<options>
<option name="content" default="function returning the title attribute">
<desc>
- The content of the tooltip. The callback can either return the content directly, or call the first argument, passing in the content, e.g., for Ajax content.
+ <p>The content of the tooltip.</p>
- When changing this option, you likely need to also change the <a href="#option-items"><code>items</code></a> option.</desc>
- <type name="Function" />
+ <p><em>When changing this option, you likely need to also change the <a href="#option-items"><code>items</code></a> option.</em></p>
+ </desc>
+ <type name="Function">
+ <desc>A callback which can either return the content directly, or call the first argument, passing in the content, e.g., for Ajax content.</desc>
+ </type>
+ <type name="String">
+ <desc>A string of HTML to use for the tooltip content.</desc>
+ </type>
</option>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<xi:include href="../includes/widget-option-hide.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="items" default="[title]">
<desc>
- A selector indicating which items should show tooltips. Customize if you're using something other then the title attribute for the tooltip content, or if you need a different selector for event delegation.
+ <p>A selector indicating which items should show tooltips. Customize if you're using something other then the title attribute for the tooltip content, or if you need a different selector for event delegation.</p>
- When changing this option, you likely need to also change the <a href="#option-content"><code>content</code></a> option.
+ <p><em>When changing this option, you likely need to also change the <a href="#option-content"><code>content</code></a> option.</em></p>
</desc>
<type name="Selector" />
</option>

0 comments on commit eaea1d8

Please sign in to comment.