Mat,

I think this issue warrants a good solution. I am working on it and think I 
have found a nice way to implement it. I will share later but here is a hint.

<<reveal-button buttonmame>>

Reusable macro that creates a pair of named toggle buttons. Displaying one 
according to the state, including a default state. A choice of local or global 
button. The reveal code is hidden inside the macro and reveals some css in one 
state and other css in the other state, no one can see this css. The css 
toggles display: none on the id in question.

In the tiddler body you use html sections or other html tags like a p div or 
span, with the id=buttonname-show or id=buttonname-hide rather than a reveal 
widget. 

Eg
<section id=buttonname-show>
this wiki text will show if the toggle is in the show state
</section>

Testing shows you can have multiple sections or tags with the same id.

<section id=buttonname-hide>
this wiki text will show if the toggle is in the hide state
</section>

does this sound good?

Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/bfa5b872-0ef1-40b1-8c82-b11554679004%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to