Regards
Tony
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).
\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>
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>
But... I tried it- it didn't work, not with your example (not edited at all) and also not with my wanted.
But... I tried it- it didn't work, not with your example (not edited at all) and also not with my wanted.
I meant with "it doesn't work": I could choose the actions, but then nothing happened...