On Wednesday, April 8, 2015 at 12:54:48 PM UTC-7, Dmitry Skopa wrote:
>
> Let's take a task list example:
> <ul>
>   <$list filter="[!is[system]tag[tasks]!tag[done]sort[-modified]]">
>     <li>
>       <$button class="btn-invisible" message="tw-add-tag" 
> param="done">Done!</$button>
>       <$link to={{!!title}}><$view field="title"/></$link>
>     </li>
>   </$list>
> </ul>
> The button "Done!" does nothing here. What should I change?
>

1) change "tw-add-tag" to "tm-add-tag".  Since the original posting of the 
example, the prefix on core-defined messages was changed from "tw-" to 
"tm-". 
2) Similarly, you should also change "btn-invisible" to "tc-btn-invisible" 
because core-defined CSS class names now have a "tc-" prefix.
3) You also need to wrap the button inside a <$fieldmangler>...
</$fieldmangler> widget.  This will 'catch' the tm-add-tag message sent 
from the button, and then add the tag value (the 'param' of the message) to 
the current tiddler.

let me know how it goes,

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

"Inside TiddlyWiki: The Missing Manual"
https://www.indiegogo.com/projects/inside-tiddlywiki-the-missing-manual/x/8816263
Note: the IndieGogo funding campaign has ended,
but direct fundraising continues below...

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
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/075e40ec-deaf-4a6a-817f-4b80e80b4061%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to