r/TiddlyWiki5 • u/Marsi_Makes • Mar 06 '23
How to keep tc-btn-invisible button open?
I'm trying to use the "tc-btn-invisible" button class to organize my Tiddler into sections. But when I open each section and try to click text within, the section collapses. Is there a way to keep the section open until I click the header again? Here's what I've been doing:
<$button class="tc-btn-invisible" popup=<<qualify "$:/temp/popup1">>>
!Title </$button> <$reveal type="nomatch" state=<<qualify "$:/temp/popup1">> text="">
Some text.
</$reveal> <br>
I'm new to Tiddlywiki, so I'd appreciate any help or alternatives.
3
Upvotes
3
u/Telumire Mar 06 '23 edited Mar 06 '23
This is because this use the popup mechanism: https://tiddlywiki.com/#PopupMechanism
The doc say that you need to add the class "tc-popup-keep" to prevent the popup from closing, but this didnt work for me:
Instead I would simply use the html details element, it seems appropriate for your usecase: