@Mat, thanks for the more detailed info! In my examples at tiddlyspot, I
tried to make clear that I don't want an accordion and I have multiple
sliders in a single tiddler (so the Accordion is not what I want).
I also don't want the category tiddler to be modified every time I open the
slider (so the style solution isn't ideal either).
cmari
On Monday, January 11, 2016 at 2:56:27 AM UTC-8, Mat wrote:
>
> @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/21342303-5c90-4291-bb7f-2af9b18d7f4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.