At the moment you can't do it directly. I am working on letting widgets 
other than the button widget trigger action widgets, which is what would be 
needed here. So, as always, when something is impossible, cheat.
What you can do is to make a fake checkbox that is actually a button that 
toggles between adding or removing the tag from a list of tiddlers.

To get it to look like the normal checkbox requires something I don't feel 
like figuring out at the moment, so that part is up to you, but the actual 
functional part is done like this:

<$reveal type='nomatch' state='$:/state/someuniquenameforthisstuff' 
text='checked'>
☐ <$button class='tc-btn-invisible'>Is it done?
<$list filter='[nazvanie[test]]'>
<$fieldmangler tiddler=<<currentTiddler>>>
<$action-sendmessage $message='tm-add-tag' $param=done/>
</$fieldmangler>
</$list>
<$action-setfield $tiddler='$:/state/someuniquenameforthisstuff' 
text=checked/>
</$button>
</$reveal>
<$reveal type='match' state='$:/state/someuniquenameforthisstuff' 
text='checked'>
☑ <$button class='tc-btn-invisible'>Is it done?
<$list filter='[nazvanie[test]]'>
<$fieldmangler tiddler=<<currentTiddler>>>
<$action-sendmessage $message='tm-remove-tag' $param=done/>
</$fieldmangler>
</$list>
<$action-setfield $tiddler='$:/state/someuniquenameforthisstuff' 
text=unchecked/>
</$button>
</$reveal>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/33d66de6-6a03-4b89-b87a-9d0fcca5602f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to