mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-25 02:56:43 +00:00
18 lines
657 B
Plaintext
18 lines
657 B
Plaintext
title: $:/core/ui/TagTemplate
|
|
|
|
\define tag-styles()
|
|
background-color:$(backgroundColor)$;
|
|
\end
|
|
<span class="tc-tag-list-item">
|
|
<$set name="backgroundColor" value={{!!color}}>
|
|
<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible tc-tag-label" style=<<tag-styles>>>
|
|
<$transclude tiddler={{!!icon}}/> <$view field="title" format="text" />
|
|
</$button>
|
|
</$set>
|
|
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes"><div class="tc-drop-down"><$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
|
<hr>
|
|
<$list filter="[all[current]tagging[]]" template="$:/core/ui/ListItemTemplate"/>
|
|
</div>
|
|
</$reveal>
|
|
</span>
|