Hi Surya,

On Thursday, February 8, 2018 at 9:33:54 PM UTC+1, Surya wrote:
>
>
> I'd like to build a button in the sidebar (next to the other buttons) for 
> building new tiddlers by templates.
>
> But I want to have several possibilities for new-tiddler-templates in this 
> button.
> These should be choosable, when I click on this one button (like the "more 
> actions"-button with the arrow-down).
>

I believe you could use the SelectWidget (simply define all desired actions 
within RevealWidgets in the "my-actions" macro):

\define my-actions()
<$reveal type="match" state="$:/state/SelectedOption" text="option1">
<$action-sendmessage $message="tm-notify" $param="SampleNotification"/>
</$reveal>
\end

<$select tiddler="$:/state/SelectedOption" actions=<<my-actions>>>
<option value="option1">Show Notification</option>
<option value="option2">My Second (Undefined) Action</option>
</$select>

You can try the code above on https://tiddlywiki.com/ 

Cheers,

Stef

-- 
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/16021d5e-c03b-426b-aec4-ee03b071f093%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to