enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

`data-ot-tipJoint` and `data-ot-targetJoint` not being recognized #53

Closed sethwoodworth closed 11 years ago

sethwoodworth commented 11 years ago

<i data-ot="Upload directly to this course" data-ot-target="true" data-ot-tipjoint="top center" data-ot-targetjoint="bottom center" class="icon-upload"></i>

screenshot from 2013-05-23 17 00 08

I realize you warn users not to abuse html attribute configuration, and I will likely be able to solve this by moving to js configuration.

enyo commented 11 years ago

Hi,

they should be: data-ot-tip-joint and data-ot-target-joint

Cheers

sethwoodworth commented 11 years ago

Perfect, thank you. Is that documented anywhere?

enyo commented 11 years ago

Yes, when you look at the documentation it says:

When the document is loaded Opentip scans the document and finds all elements with a data-ot attribute, and instantiates an Opentip automatically. To configure the Opentip this way simply add attributes beginning with data-ot- and the dashed option name. Example:

<div data-ot="The content" data-ot-delay="2" data-ot-hide-trigger="closeButton">Hover me</div>
enyo commented 11 years ago

Epic beard btw :)

sethwoodworth commented 11 years ago

Thanks!