Thank you! it works on http://tiddlywiki.com/ but it don't want to work on 
my TW *5.1.5 http://novye-podarki.ru/heeg.html 
<http://novye-podarki.ru/heeg.html>*
is it a new *feature*  of TW5 ? 

вторник, 5 мая 2015 г., 23:57:29 UTC+3 пользователь Jed Carty написал:

> 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 [email protected].
To post to this group, send email to [email protected].
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/5471f3d8-369c-4b14-a225-650bc5430d14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to