Eric, thanks. Works great.

Now I am struggling to specify the width of the popup that opens, so that 
tags would be "width-wrapped" (see "Tags button" tiddler). Any hints?

Thanks for the help and cheers,
 Joc.


p.s. If anybody else would be interested, I have very minimalistic top menu 
that works perfect.
It needs topmenu plugin (http://tongerner.tiddlyspot.com/)


<div class="tc-topmenu">
    {{Tags button}}
    {{Untagged button}}
    {{Menu button}}
    {{$:/core/ui/Buttons/new-tiddler}}
    {{$:/core/ui/Buttons/control-panel}}
    {{$:/core/ui/Buttons/close-all}}
    {{SearchBar}}
</div>

"Tags button" tiddler:
<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible 
tc-untagged-label tc-tag-label">
   Tags
</$button>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" 
position="below">
   <div class="tc-drop-down tc-popup-keep">
     <$list filter="[tags[]!is[system]sort[title]]">
        <$macrocall $name="tag" tag=<<currentTiddler>>/>
     </$list>
   </div>
</$reveal>

"Untagged button" tiddler:
<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible 
tc-untagged-label tc-tag-label">
   untgd
</$button>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" 
position="below">
   <div class="tc-drop-down">
      <$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]" 
template="$:/core/ui/ListItemTemplate"/>
   </div>
</$reveal>

"Menu button" tiddler:
<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible 
tc-untagged-label tc-tag-label">
   Menu
</$button>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" 
position="below">
   <div class="tc-drop-down">
      {{Menu button content}}
   </div>
</$reveal>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f0a64aa4-d0e3-446f-ab21-ac87fc936443%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to