2017-03-29 09:19:42 +00:00
caption: list-links-draggable
created: 20170328204925306
2021-12-14 22:27:05 +00:00
modified: 20211214141650488
2017-03-29 09:19:42 +00:00
tags: Macros [[Core Macros]]
title: list-links-draggable Macro
type: text/vnd.tiddlywiki
2017-04-02 16:51:24 +00:00
The <<.def list-links-draggable>> [[macro|Macros]] renders the ListField of a tiddler as a list of links that can be reordered via [[drag and drop|Drag and Drop]].
2017-03-29 09:19:42 +00:00
!! Parameters
;tiddler
: The title of the tiddler containing the list
;field
: The name of the field containing the list (defaults to `list`)
2022-07-13 14:58:27 +00:00
;emptyMessage
: Optional wikitext to display if there is no output (tiddler is not existed, field is not existed or empty)
2017-03-29 09:19:42 +00:00
;type
: The element tag to use for the list wrapper (defaults to `ul`)
;subtype
: The element tag to use for the list items (defaults to `li`)
;class
: Optional space separated classes to add to the wrapper element
;itemTemplate
2017-04-02 16:51:24 +00:00
: Optional title of a tiddler to use as the template for rendering list items
2017-03-29 09:19:42 +00:00
2017-04-02 16:51:24 +00:00
If the `itemTemplate` parameter is not provided then the list items are rendered as simple links. Within the `itemTemplate`, the [[currentTiddler Variable]] refers to the current list item.
2017-03-29 09:19:42 +00:00
<<.macro-examples "list-links-draggable">>