~hokiegeek/tw5-checklist

ref: 758a7967ee1ea57710736f72cb00d6ecbb0fcbfc tw5-checklist/macro_MarkDone.tid -rw-r--r-- 1.5 KiB
758a7967HokieGeek Added buttons to the items themselves so that I can manage their position in a list 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
creator: hokiegeek
modified: 20181029004217000
created: 20181029004217000
tags: $:/tags/Macro
title: $:/plugins/hokiegeek/checklist/MarkDone
type: text/vnd.tiddlywiki

\whitespace trim
\define markDoneButton(item-tag)
<$fieldmangler>
<$button
    tooltip={{$:/plugins/hokiegeek/checklist/config/buttons/MarkDone/hint}}
    aria-label={{$:/plugins/hokiegeek/checklist/config/buttons/MarkDone/caption}}
    class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-add-tag" $param="done" />
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
<span class="done-item-btn">
{{$:/core/images/done-button}}
</span>
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text">
<$text text={{$:/plugins/hokiegeek/checklist/config/buttons/MarkDone/caption}}/>
</span>
</$list>
</$button>
</$fieldmangler>
\end
\define reAddButton(item-tag)
<$fieldmangler>
<$button
    tooltip={{$:/plugins/hokiegeek/checklist/config/buttons/ReAdd/hint}}
    aria-label={{$:/plugins/hokiegeek/checklist/config/buttons/ReAdd/caption}}
    class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-remove-tag" $param="done" />
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
<span class="readd-item-btn">
{{$:/core/images/refresh-button}}
</span>
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text">
<$text text={{$:/plugins/hokiegeek/checklist/config/buttons/ReAdd/caption}}/>
</span>
</$list>
</$button>
</$fieldmangler>
\end