jaz303/tipsy — pull request #127 by semiaddict (2012-12-14 15:24:52+00:00)
Title: Add an appendTo option

Added the option "appendTo" that makes it possible to append the tip to
a specific element. Defaults to "body".

This is useful for situations where the tip should follow the element
such as a slider handler.

Example usage:

`$('

')
.slider({
animate: true,
range: "min",
value: 0,
min: 0,
max: 10,
step: 1,
create: function(event, ui){
this.handle = $(this).find('.ui-slider-handle');
this.handle.tipsy({
trigger: 'manual',
appendTo: this.handle
});
},
start: function(event, ui) {
this.handle.tipsy('show');
},
stop: function(event, ui) {
this.handle.tipsy('hide');
}
});`