That sounds great, thanks Jed. I'm only just beginning to learn JavaScript 
but this is some important info.

I'm sure I'll come up with some solutions eventually and find new problems 
as I go :)

Thanks,
Hubert

On Wednesday, 6 May 2020 20:02:04 UTC+1, Jed Carty wrote:
>
> In the same way that a button widget can have child widgets whose 
> behaviour is affected by the button widget, you could make a widget that 
> calls other widgets, or affects widgets contained inside it.
>
> You could make an action widget that takes a string of action widgets as a 
> parameter and a delay and then runs the widgets after the delay.
>
> The layout would be like this:
>
> <$button>
> WHEE!!!
> <$magic-delay-widget
> actions="""Some list of action widgets here""
> delay="1 million years"
> />
> </$button>
>
> the fastest way to do this would be to modify the button widget to take a 
> delay input and then put the setTimeout around everything inside the click 
> handler.
> There are probably nicer ways to do it, but that would work and should be 
> relatively straight forward.
>
> then it would be a normal button with an extra parameter like this, the 
> actions passed as the actions attribute or listed inside the button tags 
> shouldn't make any difference doing it that way:
>
> <$magicbutton
> delay='10 microseconds'
> actions='lots of action widgets in this list!'
> >
> MAGIC!
> </$magicbutton>!
>

-- 
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/146559f5-1a04-4105-97bd-781f48c8563c%40googlegroups.com.

Reply via email to