On Friday, July 31, 2020 at 6:13:11 PM UTC-7, TW Tones wrote: > > Thanks for the timer actions it adds a powerful dimension. > This is more than enough for many applications however perhaps in future > we could supply the action tiddlername as a variable or parameter. >
I've reworked how the custom actions are defined: To define *custom actions* to be performed when the countdown is completed: - Add a macro named done in the tiddler containing your countdown timer. This macro replaces the standard message box. - Enter the desired <$action-... /> widget syntax inside the macro definition. - Use $(here)$ to refer to the title of tiddler containing your countdown timer. - To display the standard message box, use <<showMessage msg:"your message here">> - See SampleCountdown for an example. I am very likely to have one action definition that is used many times and > it would be nice to have one defined in this case, also allowing for one to > be modified, affecting all that use that action tiddler. > To re-use one action definition multiple times you can define the done() macro to just transclude the <$action-.../> widgets from a separate tiddler, like this: \define done() <$transclude tiddler="MyCommonDoneAction" /> -e -- 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/03083e59-4f1c-42f1-8fdc-17e26955df2co%40googlegroups.com.

