tag
Mode
Using the checkbox widget in tag mode requires the tag
attribute to specify the name of the tag. The checkbox will be checked if the tiddler specified in the tiddler
attribute has the specified tag and unchecked if it does not.
This example creates a checkbox that flips the done
tag on the current tiddler:
<$checkbox tag="done"> Is it done?</$checkbox>
That renders as:
When the attribute invertTag
is set to yes
, the checkbox will be checked if the tiddler does not have the specified tag and unchecked if it does.
<$checkbox tag="done" invertTag="yes"> Is it not done?</$checkbox>
That renders as: