2026년 7월 24일 오후 11:58
This example combines four attributes so a row of buttons can show which colour is active:
setandsetTowrite the chosen colour to a state tiddlerselectedClassmarks the button whosesetTomatches the current value ofsetdefaultgives the value to compare against while thesettiddler does not yet exist
Because default is red, the Red button starts out selected. Click another colour to move the selection.
| title | Output |
Selected colour: red