On Wednesday, April 27, 2016 at 8:38:53 AM UTC-7, Joc wrote:
>
> I have no issue listing all tags:
> <$list filter="[tags[]!is[system]sort[title]]" 
> template="$:/plugins/tongerner/topmenu/menu-template" />
> But when I try to "nest" them inside button, I have issue. When clicked, 
> the list shows, however it is not further clickable (i.e. when clicking on 
> certain tag, the button "closes")
> <$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">
> <$list filter="[tags[]!is[system]sort[title]]" 
> template="$:/plugins/tongerner/topmenu/menu-template" />
> </div>
> </$reveal>
>
> What would be the best way to make such (at least two level) "pop-up tree":
> - level one, pop-up all tags (on button click)
> - level two, pop-up tiddler (on tag click)
> ...of course, on tiddler click, I'd like to open it :)
>

<div class="tc-drop-down tc-popup-keep">
   <$list filter="[tags[]!is[system]sort[title]]">
      <$macrocall $name="tag" tag=<<currentTiddler>>/>
   </$list>
</div>

* by default, any click, whether inside or outside a popup, will dismiss 
the popup.  This works well when the popup contents is just simple links. 
 However, when further interaction is needed (i.e., when clicking a tag 
pill that shows a list of tags), you need to add "tc-popup-keep" to the 
drop-down class wrapper.  Clicks *inside* the popup will then no longer 
dismiss the popup.  Clicks *outside* the popup will still close it, as 
usual.

* To show the tag pills rather than links to the tags themselves, use the 
$macrocall widget to invoke the <<tag>> macro, passing in the 
<<currentTiddler>> value (as set by the surrounding $list widget) as the 
desired tag name.  The result is the display of a tag pill for each tag in 
your document.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals

-- 
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/8d1f7d04-6d53-4f34-bfab-3054d2d481ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to