Hi everybody,
I can now add tasks inline without needing to vector off to a separate
tiddler to edit or save. I thought I'd share my code in case it is useful
to someone else.
\define taskButtonTags()
[[$(currentTiddler)$]] task
\end
<$reveal type="match" state="$:/temp/addtodo" text="hide">
<$button set="$:/temp/addtodo" setTo="show">Add a to-do</$button>
</$reveal>
<$reveal type="nomatch" text="hide" state="$:/temp/addtodo">
<$edit-text tiddler="$:/temp/newtodo" placeholder="Add a new to-do..." tag=
"input" type="text"/>
<$button set="$:/temp/newtodo!!title" setTo={{$:/temp/newtodo}}>
<$action-setfield $tiddler="$:/temp/newtodo" tags=<<taskButtonTags>>/> <!--
this works to add my tags -->
Add this to-do...
</$button>
<$button set="$:/temp/addtodo" setTo="hide">I'm done adding to-dos</$button>
</$reveal>
Thanks again!
Alan
--
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.
For more options, visit https://groups.google.com/d/optout.