Hi Luis,
first of all thank you.

On Saturday, 14 November 2015 20:40:28 UTC+1, Luis Miguel Morillas wrote:
>
> Hmmm. Can you give an example, Andrea? 
>

Yes. I have this webpage 
<http://ondata.github.io/sbilanciamoci-manovra2016/welfare.html>. In the 
second column of the exhibit table, I have a tooltip onclick. This is the 
html code:

<td><a href="javascript:void(0);" ex:onclick-subcontent="Tip('<div class=
\'tip-welfare\'><strong>Descrizione: </strong>{{.Descrizione}}</div>', 
WIDTH, 400,BGCOLOR,'',BORDERWIDTH,0)" onmouseout="UnTip()"><span ex:content=
".label"><span ex:content=".label"></span></a></td>

Some time I have no value for {.Descrizione} and I would like to have no 
tooltip. Is it possible to use something like

<td><a href="javascript:void(0);" ex:if-exists-onclick-subcontent="Tip('<div 
class=\'tip-welfare\'><strong>Descrizione: </strong>{{.Descrizione}}</div>', 
WIDTH, 400,BGCOLOR,'',BORDERWIDTH,0)" onmouseout="UnTip()"><span ex:content=
".label"><span ex:content=".label"></span></a></td>

or

<td><a href="javascript:void(0);" 
ex:onclick-subcontent="if(exists(.Descrizione), (Tip('<div class=
\'tip-welfare\'><strong>Descrizione: </strong>{{.Descrizione}}</div>', 
WIDTH, 400,BGCOLOR,'',BORDERWIDTH,0))), '')" onmouseout="UnTip()"><span 
ex:content=".label"><span ex:content=".label"></span></a></td>

Best regards

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.

Reply via email to