mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-16 03:31:14 -07:00
Improve CheckboxWidget documentation
This commit is contained in:
parent
62881a5aaa
commit
fc21a9951d
1 changed files with 7 additions and 7 deletions
|
|
@ -6,20 +6,20 @@ colors: red orange yellow blue
|
|||
title: CheckboxWidget
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define checkedActions()
|
||||
<$action-listops $field="colors" $subfilter="red -green"/>
|
||||
\end
|
||||
|
||||
\define uncheckedActions()
|
||||
\define checkActions()
|
||||
<$action-listops $field="colors" $subfilter="-red green"/>
|
||||
\end
|
||||
|
||||
\define uncheckActions()
|
||||
<$action-listops $field="colors" $subfilter="red -green"/>
|
||||
\end
|
||||
|
||||
\define filterExample()
|
||||
<$checkbox filter="[list[!!colors]]" checked="red" unchecked="green" default="green" checkactions=<<checkedActions>> uncheckactions=<<uncheckedActions>> > Is "red" in colors?</$checkbox><br />''colors:'' {{!!colors}}
|
||||
<$checkbox filter="[list[!!colors]]" checked="green" unchecked="red" default="red" checkactions=<<checkActions>> uncheckactions=<<uncheckActions>> > Is "green" in colors?</$checkbox><br />''colors:'' {{!!colors}}
|
||||
\end
|
||||
|
||||
\define filterExampleWithoutDefault()
|
||||
<$checkbox filter="[list[!!colors]]" checked="red" unchecked="green" checkactions=<<checkedActions>> uncheckactions=<<uncheckedActions>> > Is "red" in colors?</$checkbox><br />''colors:'' {{!!colors}}
|
||||
<$checkbox filter="[list[!!colors]]" checked="green" unchecked="red" checkactions=<<checkActions>> uncheckactions=<<uncheckActions>> > Is "green" in colors?</$checkbox><br />''colors:'' {{!!colors}}
|
||||
\end
|
||||
|
||||
\define display-variable(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue