public
Description: Rails javascript-based tooltip plugin, based on Redbox
Home | Edit | New

Home

Redtip is based on code from Craig Ambrose’s Redbox.

Right now it basically has two methods you can use:

link_to_redtip(name, id, html_options = {})
Creates popout “tip-text” type box when the link is clicked on. The first argument will be the text of the link, and the second argument is assumed to be the id of a div which may (but doesn’t have to) be set to display:none with CSS.

link_to_dropdown(name, id, html_options = {})
Similar to the above, but with the placement and look adjusted to behave more like a dropdown. Assumes that the hidden div contains an unordered list which holds the links/options of the menu. By default, it assumes a fairly narrow fixed width; width => ‘nnn’ (where nnn is an integer, of course) can be passed as part of the options.

I’ll try to improve this documentation, but for now just look at lib/redtip_helper.rb to see how it works.

Last edited by philcrissman, Fri Sep 26 21:15:28 -0700 2008
Home | Edit | New
Versions: