briancray / tooltipsy

Introducing a jQuery tooltip plugin for control-obsessed designers.
http://tooltipsy.com
MIT License
325 stars 97 forks source link

Force show method #11

Closed tizmagik closed 13 years ago

tizmagik commented 13 years ago

Any chance at creating a forced show method? Could be used like so: $('#element').tooltipsy().show(); or something similar (would also need a hide() method, of course). The use case being if we'd like to call attention to a specific item on the page (think new feature in Google Docs, usually gets introduced with a callout).

tizmagik commented 13 years ago

Ah, I see it has been forked with a commit for this feature by mAu888 https://github.com/mAu888/tooltipsy/commit/7cc42bb81d85994f52d32fbd9a115e7077600712

It would be nice if this was merged

briancray commented 13 years ago

I'll look into it

briancray commented 13 years ago

Sorry I always hit comment and close :\

briancray commented 13 years ago

Added.

// setup tooltipsy
$('.hastip').tooltipsy();

// force show tooltipsy
$('.hastip').data('tooltipsy').show();

// force hide tooltipsy
$('.hastip').data('tooltipsy').hide();