Hi Dave,

Try this :

\define ips.opp()
<$wikify name="ips" text=font-weight:{{!!f1}}><$wikify name="opp" text=font-
weight:{{!!f2}}>
<table>
<tr style=<<ips>>><td style="text-align:center"><$button><$action-setfield 
 $field="side" $value="ips"/><$action-setfield $field="f1" $value="bold;" 
/><$action-setfield  $field="f2" $value="normal;" />ips</$button></td></tr>
<tr style=<<opp>>><td style="text-align:center"><$button><$action-setfield 
$field="side" $value="opp" /><$action-setfield $field="f1" $value="normal;" 
/><$action-setfield $field="f2" $value="bold;" />opp</$button></td></tr></
table>
<<ips>>,<<opp>>
</$wikify></$wikify>
\end

|<<ips.opp>>|



Regards

FrD

Le dimanche 12 mars 2017 22:49:32 UTC+1, Dave a écrit :
>
> I have this table and buttons:
>
> \define ips.opp()
> <$set name="ips" value={{!!f1}}><$set name="opp" value={{!!f2}}>
> <table>
> <tr style="font-weight:<<ips>>"><td style="text-align:center"><$button><
> $action-setfield  $field="side" $value="ips"/><$action-setfield $field=
> "f1" $value="bold" /><$action-setfield  $field="f2" $value="normal" />ips<
> /$button></td></tr>
> <tr style="font-weight:<<opp>>"><td style="text-align:center"><$button><
> $action-setfield $field="side" $value="opp" /><$action-setfield $field=
> "f1" $value="normal" /><$action-setfield $field="f2" $value="bold" />opp<
> /$button></td></tr></table>
> <<ips>>,<<opp>>
> \end
>
> |<<ips.opp>>|
>
> its basically got 2 buttons "ips" and "opp", and the primary function is 
> to set a field "side" to either "ips" or  "opp", and that works fine.
>
> What I also want to do is have the font on the button go *bold* once its 
> pressed.  The f1 and f2 fields are being set properly as are the variables 
> "ips" and "opp", so I don't know why this won't work (the font just stays 
> normal the whole time).
>
>
> Any ideas?
>
> thanks,
> - Dave
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b0219d43-ddde-4f27-8c73-83f84c618dea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to