Eric, Thanks for that. I feel I need to return some demo solutions soon.
Best wishes TW Tones On Saturday, August 1, 2020 at 2:14:40 PM UTC+10, Eric Shulman wrote: > > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fbef6082-17b0-4b85-950d-79cf74701d03o%40googlegroups.com.