[TW5] Tiddly Viewer doesn't fold

68 views
Skip to first unread message

Andrew

unread,
Sep 29, 2015, 11:54:59 PM9/29/15
to TiddlyWikiDev
Hello again, wonderful tiddlywiki developers. I built an object frame viewer and tagged it $:/tags/ViewTemplate and gave it the field list-after:$:/core/ui/ViewTemplate/tags but now that I am testing it with the new 5.1.10-prerelease, I'm finding that it isn't folding. I've been studying the folding mechanism for hours and I'm still not figuring out where I am going wrong. Any suggestions welcome. Here is my Tiddly Viewer. Thanks.

Tobias Beer

unread,
Sep 30, 2015, 5:00:32 AM9/30/15
to tiddly...@googlegroups.com
Hi Andrew,

 
I built an object frame viewer and tagged it $:/tags/ViewTemplate and gave it the field list-after:$:/core/ui/ViewTemplate/tags but now that I am testing it with the new 5.1.10-prerelease, I'm finding that it isn't folding.

Because folding mechanism is implemented in a way where each ViewTemplate
has to explicitly wrap its contents in a RevealWidget for them to fold.

So, use...

<$reveal type="nomatch" state=<<folded-state>> text="hide" retain="yes" animate="yes">
<!-- your template goes here -->
</$reveal>

I have opened an issue for this:

#1974 handle folding in ViewTemplate, not individual templates
Best wishes,

— tb
Reply all
Reply to author
Forward
0 new messages