@cmari

Proper reply:

But first of all I should say: Take a look at the RevealWidget and the 
"Accordion or Slider" chapter. Isn't this exactly what you want?

Ok, the CSS way:

<$button set="!!display" setTo="block">Show me</$button>
<$button set="!!display" setTo="none">Hide me</$button>

<div class="display">
Daaay-ooo!
</div>

<style>
.display {display:{{!!display}};}
</style>


That last line might look funny if you're not familiar with CSS. It 
translates to:

For the class called display ... apply the CSS-property display ... and set 
its value to the value in this tiddlers display field.

The CSS display property controls whether or not to display a div.

I've made the example as simple as possible which results in two buttons. I 
guess you can use reveal statuses to show one or the other.

-- 
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/eabd8e7b-fabe-4017-ac7c-187bc96bd139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to