On Thursday, August 5, 2021 at 6:35:09 PM UTC-7 Eric Shulman wrote:
> This is actually quite easy to do, using the *list-links-draggable* macro
>
errata: my previous solution omitted the display of the "List/Empty"
message when the list field is empty.
Here's a corrected version that includes the "List/Empty" message:
<$list filter="[list{!!title}limit[1]]" emptyMessage=<<lingo List/Empty>>
variable="has_list_items">
<$macrocall $name="list-links-draggable" type="span" subtype="div"
itemTemplate="$:/core/ui/ListItemTemplate"/>
</$list>
Note:
* The outer $list widget checks to see if the list field has at least 1
item. If it doesn't, the fallback emptyMessage content is displayed.
* Using variable="has_list_items" preserves the currentTiddler context for
use by the $macrocall contained within the $list widget.
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1505fce4-4827-437f-8ce4-eab40abc870an%40googlegroups.com.