marginotes icon indicating copy to clipboard operation
marginotes copied to clipboard

add wrapper option

Open matallo opened this issue 8 years ago • 0 comments

it would be useful adding a wrapper or parent option so you can always set the parent where to add the tooltip, instead of fixing it to the body. This is an example of how that code would look like:

var $wrapper = options.wrapper || $('body')

$wrapper.append('<div class = "margintooltip" style = "display:none;"></div>')

Congrats for the snippet, and spurring such inspiration.

matallo avatar Mar 12 '16 17:03 matallo