mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Add select all/none checkbox to $:/Import
Prompted by this discussion: https://groups.google.com/d/topic/tiddlywiki/MYBWCxOc_gM/discussion
This commit is contained in:
parent
eba1c3c160
commit
3197f9a639
@ -1,20 +1,32 @@
|
||||
title: $:/core/ui/ImportListing
|
||||
|
||||
\define lingo-base() $:/language/Import/
|
||||
|
||||
\define messageField()
|
||||
message-$(payloadTiddler)$
|
||||
\end
|
||||
|
||||
\define selectionField()
|
||||
selection-$(payloadTiddler)$
|
||||
\end
|
||||
|
||||
\define previewPopupState()
|
||||
$(currentTiddler)$!!popup-$(payloadTiddler)$
|
||||
\end
|
||||
|
||||
\define select-all-actions()
|
||||
<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler">
|
||||
<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
<$checkbox tiddler="$:/state/import/select-all" field="text" checked="checked" unchecked="unchecked" default="checked" actions=<<select-all-actions>>>
|
||||
<<lingo Listing/Select/Caption>>
|
||||
</$checkbox>
|
||||
</th>
|
||||
<th>
|
||||
<<lingo Listing/Title/Caption>>
|
||||
|
Loading…
Reference in New Issue
Block a user