mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Add elementTag parameter to list-tagged-draggable macro
This commit is contained in:
parent
40a61ff2e7
commit
f03feb69a9
@ -69,31 +69,31 @@ tags: $:/tags/Macro
|
||||
</$set>
|
||||
\end
|
||||
|
||||
\define list-tagged-draggable(tag,itemTemplate)
|
||||
\define list-tagged-draggable(tag,itemTemplate,elementTag:"div")
|
||||
<$set name="tag" value="""$tag$""">
|
||||
<$list filter="[<tag>tagging[]]">
|
||||
<div class="tc-menu-list-item">
|
||||
<$elementTag$ class="tc-menu-list-item">
|
||||
<$droppable actions=<<list-tagged-draggable-drop-actions>>>
|
||||
<div class="tc-droppable-placeholder">
|
||||
<$elementTag$ class="tc-droppable-placeholder">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
</$elementTag$>
|
||||
<$elementTag$>
|
||||
<$transclude tiddler="""$itemTemplate$""">
|
||||
<$link to={{!!title}}>
|
||||
<$view field="title"/>
|
||||
</$link>
|
||||
</$transclude>
|
||||
</div>
|
||||
</$elementTag$>
|
||||
</$droppable>
|
||||
</div>
|
||||
</$elementTag$>
|
||||
</$list>
|
||||
<$tiddler tiddler="">
|
||||
<$droppable actions=<<list-tagged-draggable-drop-actions>>>
|
||||
<div class="tc-droppable-placeholder">
|
||||
<$elementTag$ class="tc-droppable-placeholder">
|
||||
|
||||
</div>
|
||||
<div style="height:0.5em;">
|
||||
</div>
|
||||
</$elementTag$>
|
||||
<$elementTag$ style="height:0.5em;">
|
||||
</$elementTag$>
|
||||
</$droppable>
|
||||
</$tiddler>
|
||||
</$set>
|
||||
|
Loading…
Reference in New Issue
Block a user