jquery-cluetip icon indicating copy to clipboard operation
jquery-cluetip copied to clipboard

suggestion: trigger('showCluetip')

Open phlox opened this issue 13 years ago • 1 comments

Hi

first of all: it's a fantastic plugin, I love it!

In a GUI with keyboard navigation I'd like to show a cluetip programmatically and I didn't find a way to do so. Did I miss something?

Otherwise, as a pendant to 'hideCluetip', I'd suggest to implement a 'showCluetip' event, e.g. $('#myelem').trigger('showCluetip');

Daniel

phlox avatar Dec 13 '11 09:12 phlox

Hi there,

Glad you like the plugin! You didn't miss anything. Unfortunately, when I started writing it years ago, I didn't know much about organizing code or writing widgets so I kind of coded myself into a corner in certain respects. Setting it up to programmatically hide is much easier than setting it up to show a cluetip. Hiding it is simple. For example, doesn't matter which element triggered it to open. Also, there's the problem of how to position the cluetip. One of the options allows you to position it based on the mouse position, but if triggered programmatically, the mouse coordinates aren't available in the event object. There are other complicating factors that make this a non-trivial task and one that I'm not sure is worth pursuing with this iteration of the plugin.

kswedberg avatar Dec 29 '11 01:12 kswedberg