tipso icon indicating copy to clipboard operation
tipso copied to clipboard

Added options to control show events and hide events

Open gazchap opened this issue 8 years ago • 0 comments

Have added a "showEvents" option and a "hideEvents" option, which default to 'mouseover' and 'mouseout' respectively.

The options can be a space-separated string of events, or an array of events, that trigger the tooltip to be shown or hidden.

Useful if you want a tooltip to show on an input element when the cursor is focused on it (e.g. on tablet devices where mouseover isn't traditionally possible.)

Example:

$('.tipso').tipso({ showEvents: 'mouseover focus', hideEvents: 'mouseout blur' });

gazchap avatar Feb 20 '17 21:02 gazchap