720kb / angular-tooltips

Angularjs tooltips module, add tooltips to your elements - https://720kb.github.io/angular-tooltips
351 stars 157 forks source link

img as template? #195

Closed eaba closed 7 years ago

eaba commented 7 years ago

Hello is it possible to do something like this: tooltip-template="<img src="data:image/jpg;base64,' + data[y]['Image'] + '" />" I have tried it but it is not working!

45kb commented 7 years ago

Hi for html you can use tooltip-template-url="path/to/template.html"

eaba commented 7 years ago

In other words, what I desire to achieve is not possible right?

45kb commented 7 years ago

@eaba have you tried it ? :)

maybe:

tooltip-template="<img src="data:image/jpg;base64,{{data[y]['Image']}}" />"

Just try it. I think it should work. However the best practice is to use an external view for html templates.

eaba commented 7 years ago

I tried it and i got something like this instead <a tooltip-smart="true" The anchor was not being handled properly so i think. Note that I am not using angular model