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

How to inspect tooltips with webinspector? #69

Closed Metasequ0ia closed 11 years ago

Metasequ0ia commented 11 years ago

Maybe I am dumb, but I am not able to access the css rules with webinspector. How is this possible?

kcrwfrd commented 11 years ago

Pass these options when you instantiate the tooltip, then you can right click inside of it to inspect the elements:

showOn: 'click',
hideOn: 'click',
fixed: true
Metasequ0ia commented 11 years ago

Thanks kvcrawford! But I use html attributes to create opentips. Is there a way to pass those options when using html attributes?

kcrwfrd commented 11 years ago

Sure, set them like this: data-ot-show-on="click" data-ot-hide-on="click" data-ot-fixed="true"

Metasequ0ia commented 11 years ago

Excellent! Didn't thought it's that easy. Thanks a lot!

enyo commented 11 years ago

Thanks @kvcrawford for helping out!

kcrwfrd commented 11 years ago

:+1: no problem guys! Happy to help.