Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaz303 committed May 2, 2010
1 parent f0231cb commit c28076e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 33 deletions.
66 changes: 33 additions & 33 deletions docs/src/index.html.erb
Expand Up @@ -277,42 +277,42 @@ an anchor tag's title attribute.</p>

<!-- Options -->


<h2 id="options">Options</h2>
<p>Here is the default option declaration:
<pre>
$.fn.tipsy.defaults = {
delayIn: 0,
delayOut: 0,
fade: false,
fallback: '',
gravity: 'n',
html: false,
live: false,
opacity: 0.8,
title: 'title',
trigger: 'hover'
};
</pre>

<h2 id='notes'>Notes</h2>

<p>Tipsy needs to erase any existing value for an element's <code>title</code> attribute in
order to suppress the browser's native tooltips. It is stashed in the element's
<code>original-title</code> attribute in case you need to retrieve it later.</p>
<h2 id="options">Summary of Configuration Options</h2>
<p>Here is the default options declaration:
<pre>$.fn.tipsy.defaults = {
delayIn: 0, // delay before showing tooltip (ms)
delayOut: 0, // delay before hiding tooltip (ms)
fade: false, // fade tooltips in/out?
fallback: '', // fallback text to use when no tooltip text
gravity: 'n', // gravity
html: false, // is tooltip content HTML?
live: false, // use live event support?
offset: 0, // pixel offset of tooltip from element
opacity: 0.8, // opacity of tooltip
title: 'title', // attribute/callback containing tooltip text
trigger: 'hover' // how tooltip is triggered - hover | focus | manual
};</pre>

<p>As of version 0.1.4, the tooltip text is recomputed on every hover event so updating the
<code>title</code> attribute will have the expected effect.</p>
<!-- Notes -->

<h2 id='download'>Download</h2>
<h2 id='notes'>Notes</h2>

<h3>Package</h3>
<p>Tipsy needs to erase any existing value for an element's <code>title</code> attribute in
order to suppress the browser's native tooltips. It is stashed in the element's
<code>original-title</code> attribute in case you need to retrieve it later.</p>

<p>As of version 0.1.4, the tooltip text is recomputed on every hover event so updating the
<code>title</code> attribute will have the expected effect.</p>

<p>
Package downloads are available from the
<a href='http://plugins.jquery.com/project/tipsy'>jQuery project page</a>.
</p>
<!-- Download -->

<h3>github</h3>
<pre class='shell'><span class='green'>jason@donut</span> <span class='blue'>~ $</span> git clone git://github.com/jaz303/tipsy.git</pre>
<h2 id='download'>Download</h2>

<h3>Package</h3>
<p>
Package downloads are available from the
<a href='http://plugins.jquery.com/project/tipsy'>jQuery project page</a>.
</p>

<h3>github</h3>
<pre class='shell'><span class='green'>jason@donut</span> <span class='blue'>~ $</span> git clone git://github.com/jaz303/tipsy.git</pre>
2 changes: 2 additions & 0 deletions docs/src/project.yml
Expand Up @@ -5,6 +5,8 @@ project:
main_nav:
- ["Overview", "#overview"]
- ["Examples & Usage", "#examples"]
- ["Summary of Configuration Options", "#options"]
- ["Notes", "#notes"]
- ["Download", "#download"]
stylesheets: ['stylesheets/tipsy.css', 'tipsy-docs.css']
javascripts: ['javascripts/jquery.tipsy.js']

0 comments on commit c28076e

Please sign in to comment.