This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

ButtonWidget/Example/SetAndSetTo

24th July 2026 at 11:58pm

set and setTo work as a pair to assign a value when the button is clicked:

  • set names the storage location, a TextReference
  • setTo is the value written to it

set points at the location itself, so it takes no curly brackets, unlike an ordinary transclusion.

Click a colour to write it to the state tiddler shown below.

titleOutput

Selected colour: