This is pretty much the same answer as I gave on the other thread, but the 
same idea works. You put in two action-setfield widgets for each thing you 
want to change, one to turn it off and one to turn it on. The states are 
separated by reveal widgets. I have an example showing how to add/remove a 
tag and to change a field because they are different, but you will have to 
add all the different things you want to toggle. You can put as many things 
as you want, put everything for the 'off' state in the first reveal widget 
and everything for the 'on' state in the second one.

<$button class='tc-btn-invisible'>
 <$reveal type='match' state='$:/plugins/tobibeer/preview/defaults/exclude' 
text='[all[tiddlers]]'>
  <input type='checkbox'/>
  <$fieldmangler tiddler="$:/core/ui/SideBar/More">
   <$action-sendmessage $message='tm-add-tag' $param="$:/tags/SideBar"/>
  </$fieldmangler>
  <$action-setfield $tiddler='$:/plugins/tobibeer/preview/defaults/exclude' 
text='[is[system]] [all[shadows]] [!has[text]]'/>
 </$reveal>
 <$reveal type='nomatch' 
state='$:/plugins/tobibeer/preview/defaults/exclude' text='[all[tiddlers]]'>
  <input type='checkbox' checked/>
  <$fieldmangler tiddler="$:/core/ui/SideBar/More">
   <$action-sendmessage $message='tm-remove-tag' $param="$:/tags/SideBar"/>
  </$fieldmangler>
  <$action-setfield $tiddler='$:/plugins/tobibeer/preview/defaults/exclude' 
text='[all[tiddlers]]'/>
 </$reveal>
</$button>

-- 
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/28d12cb6-7543-4ac3-845e-ac988a54661e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to