On Tuesday, January 12, 2016 at 5:19:54 AM UTC-8, Tobias Beer wrote:
>
> Hi Eric,
>  
>
>> According to those docs, you want to add invertTag="yes", which says:
>>
>> "When set to yes, flips the tag binding logic so that the absence of the 
>> tag causes the checkbox to be checked"
>>
>
> I think the problem is that Casey wants to perform two actions in one 
> checkbox,
> and futhermore it appears that the CheckboxWidget is unfit to do so, see:
>

Casey very clearly stated his goal:
"I want the "In Progress" tag to be removed once I tick the box"

Only *one* action.... remove a tag when a checkbox is clicked (or set the 
tag when the checkbox is cleared)

That is *exactly* what the "invertTag" parameter accomplishes.  

-e




> *#2217 have CheckboxWidget trigger actions*
> https://github.com/Jermolene/TiddlyWiki5/issues/2217
>
> ~
>
> *@matabele*, I tried to use the *$action-listops* widget and a button,
> but it appears to fail to do what I want:
>
> ! Outstanding tasks
> <$list filter="[!has[draft.of]tag[task]!tag[In 
> Progress]!tag[done]sort[created]]">
> <$checkbox tag="In Progress"> <$link to={{!!title}}><$view field="title"
> /></$link></$checkbox>
> </$list>
>
> ! In Progress...
> <$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]">
> <$button class="tc-btn-invisible"><input type="checkbox"/><$action-listops 
> $field="tags" $subfilter="+done -[[In Progress]]"/></$button>
> <$link to={{!!title}}><$view field="title"/></$link>
> </$list>
>
> ! Completed tasks
> <$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
> <$checkbox tag="done"> ~~<$link to={{!!title}}><$view field="title"/></
> $link>~~</$checkbox>
> </$list>
>
> Also, how to use *$action-listops* with the *$tags* attribute while 
> preserving the existing tags?!?
>
> Best wishes,
>
> Tobias. 
>

-- 
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/dc13a331-47e4-452c-8643-a1944cacb4d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to