1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

More drag and drop docs

This commit is contained in:
Jermolene 2017-04-02 17:51:24 +01:00
parent aa1a8cf2eb
commit b1e0fa4a34
3 changed files with 32 additions and 6 deletions

View File

@ -0,0 +1,7 @@
created: 20170329093300835
modified: 20170329093346982
tags: [[list-links-draggable Macro]] [[Macro Examples]]
title: list-tagged-draggable Macro (Examples)
type: text/vnd.tiddlywiki
<$macrocall $name=".example" n="1" eg="""<<list-tagged-draggable tag:"Features">>"""/>

View File

@ -1,11 +1,11 @@
caption: list-links-draggable
created: 20170328204925306
modified: 20170328210923128
modified: 20170329093008550
tags: Macros [[Core Macros]]
title: list-links-draggable Macro
type: text/vnd.tiddlywiki
The <<.def list-links-draggable>> [[macro|Macros]] renders the links in a ListField of a tiddler as a list that can be reordered via [[drag and drop|Drag and Drop]].
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]].
!! Parameters
@ -20,10 +20,8 @@ The <<.def list-links-draggable>> [[macro|Macros]] renders the links in a ListFi
;class
: Optional space separated classes to add to the wrapper element
;itemTemplate
: Optional title of a tiddler to use as the template for rendering list items.
: Optional title of a tiddler to use as the template for rendering list items
If the `itemTemplate` parameter is not provided then the list items are rendered as simple links.
Within the item template, the [[currentTiddler Variable]] refers to the current list item.
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.
<<.macro-examples "list-links-draggable">>

View File

@ -0,0 +1,21 @@
caption: list-tagged-draggable
created: 20170329092723939
modified: 20170329093247470
tags: Macros [[Core Macros]]
title: list-tagged-draggable Macro
type: text/vnd.tiddlywiki
The <<.def list-tagged-draggable>> [[macro|Macros]] renders the tiddlers with a particular tag as a list of links that can be reordered via [[drag and drop|Drag and Drop]].
!! Parameters
;tag
: The title of the tag
;itemTemplate
: Optional title of a tiddler to use as the template for rendering list items
Note that the [[ordering|Order of Tagged Tiddlers]] is accomplished by assigning a new list to the `list` field of the tag tiddler. Any `list-before` or `list-after` fields on any of the other tiddlers carrying the tag are also removed to ensure the `list` field is respected.
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.
<<.macro-examples "list-tagged-draggable">>