Is it what you need?
http://lmorillas.github.io/sbilanciamoci-manovra2016/welfare.html
<td>
<!-- Shows tip if Descrizione exists -->
<a ex:if-exists=".Descrizione" 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></a>
<!-- only if Descrizione not exists -->
<span ex:content="if(exists(.Descrizione), '', .label)"></span>
</td>
Saludos,
-- luismiguel (@lmorillas)
2015-11-17 8:48 GMT+01:00 andy <[email protected]>:
>
> On 17 November 2015 at 08:03, David Karger <[email protected]> wrote:
>
>> Not sure what your goal is, but you could always wrap the
>> onclick-subcontent tag inside a separate if-exists tag.
>
>
> Hi David, could you write me an if-exists tag hello world code that
> contains an onclick-subcontent tag?
>
> Thank you very much
>
>
> --
> Andrea Borruso
> website: http://blog.spaziogis.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus <http://bit.ly/GEOplus>
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> --
>
> "cercare e saper riconoscere chi e cosa,
> in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio"
>
> Italo Calvino
>
> --
> 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.
>
--
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.