That's exactly what I was looking for. Thank you for your feedback.

On Sat, Feb 27, 2016 at 9:26 PM, Scott Simmons (Secret-HQ) <
goo...@secret-hq.com> wrote:

> Would it work to create a macro that could generate each button based on a
> parameter?
>
> E.g.:
>
> \define format(button)
> <$button message="tm-button" tooltip=<<lingo hint##$button$>>
> aria-label=<<lingo caption##$button$>> class=<<tv-config-toolbar-class>>>
> <$action-setfield $tiddler="$:/language/format/notify" $field="text"
> $value=<<lingo notice##$button$>>/>
> <$action-sendmessage $message="tm-notify"
> $param="$:/language/format/notify"/>
> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
> <span class="tc-format-small">
> <span class="text-transform:capitalize;">$button$</span></span>
> </$list>
> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
> <span class="tc-btn-text">
> <<lingo caption##$button$>>
> </span>
> </$list>
> </$button>
>
> ... so that you could display the button with a macrocall like <<format
> "button">>.
>
>> --
> 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 https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/401a8d57-c4b3-4c2e-bd79-0b09fd092246%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/401a8d57-c4b3-4c2e-bd79-0b09fd092246%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAL0r7zsK9KEdgwpZ7nuXZswhjKLVEOwTNawWqd_GKkgmh5mVig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to