miket... - Somewhat like what Soren says, but not quite:
It doesn't look like you actually want to perform an "action" as it is
meant in TW but rather just show and hide(?) a regular listing. For this,
refer to the revealwidget <https://tiddlywiki.com/prerelease/>, the
"accordion" example, like so:
<$reveal type="nomatch" state="$:/state/SampleReveal2" text="show">
<$button set="$:/state/SampleReveal2" setTo="show">Show me</$button>
</$reveal>
<$reveal type="match" state="$:/state/SampleReveal2" text="show">
<$button set="$:/state/SampleReveal2" setTo="hide">Hide me</$button>
* <$list filter="[tag[About]]">*
* <$link/> {{||$:/core/templates/static-tiddler}} </$list>*
</$reveal>
BTW, this construct is IMO unnecessarily complex and I've called attention
to this here <https://github.com/Jermolene/TiddlyWiki5/discussions/5839> with
a proposal for a simpler "accordionwidget". Do comment there if you agree
or disagree.
<:-)
On Sunday, July 4, 2021 at 2:47:10 PM UTC+2 [email protected] wrote:
> For the button I want to make an Action. I took the example from the help
> as a basis, but of course it does not work :)
>
>
>
>
>
>
>
>
>
>
> *\define my-actions() <$list filter="[tag[About]]"> <$link/>
> {{||$:/core/templates/static-tiddler}} </$list>\end<$button
> actions=<<my-actions>>>Click me!</$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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a4412215-46b2-4424-a8dc-5c2148cccd27n%40googlegroups.com.