mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
bfcb386343
* Restructure and optimize `CheckboxWidget` docs * Minor improvements * Use new tab macros and some reformatting * Fix bug in widget-attr-link tooltip * Minor layout tweaks * First try at a Widget Documentation Style Guide * Add new tabs-related macros to overview * Update CSS, add tm-scroll and rename macros * Avoid RSoE with tm-scroll, improve CSS for tab-links * Handle doc-tab-links within tab tiddlers better * Reflect macro name changes in their docs * Update Widget Doc Style Guide
18 lines
921 B
Plaintext
18 lines
921 B
Plaintext
caption: <<.attr tag>>
|
|
created: 20230314171205017
|
|
description: tab
|
|
modified: 20230317161122617
|
|
tags: CheckboxWidget
|
|
title: CheckboxWidget (tag Mode)
|
|
|
|
!!<<.link "<<.attr tag>> Mode" "CheckboxWidget (tag Mode)">>
|
|
|
|
Using the checkbox widget in tag mode requires the <<.attr tag>> attribute to specify the name of the tag. The checkbox will be checked if the tiddler specified in the <<.attr tiddler>> attribute has the specified tag and unchecked if it does not.
|
|
|
|
This example creates a checkbox that flips the <<.tag done>> tag on the current tiddler:
|
|
|
|
<<wikitext-example-without-html """<$checkbox tag="done"> Is it done?</$checkbox>""">>
|
|
|
|
When the attribute <<.attr invertTag>> is set to <<.value yes>>, the checkbox will be checked if the tiddler does <<.em not>> have the specified tag and unchecked if it does.
|
|
|
|
<<wikitext-example-without-html """<$checkbox tag="done" invertTag="yes"> Is it not done?</$checkbox>""">> |