1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 01:33:16 +00:00

Use separate state for each slider demo

Fixes #988
This commit is contained in:
Jermolene 2014-10-17 10:02:21 +01:00
parent 713792831e
commit ad13d57523

View File

@ -34,10 +34,10 @@ Retaining the content when hidden can give poor performance since the hidden con
Here's a simple example of showing and hiding content with buttons: Here's a simple example of showing and hiding content with buttons:
<<wikitext-example-without-html '<$button set="$:/SampleRevealState" setTo="show">Show me</$button> <<wikitext-example-without-html '<$button set="$:/SampleRevealState1" setTo="show">Show me</$button>
<$button set="$:/SampleRevealState" setTo="hide">Hide me</$button> <$button set="$:/SampleRevealState1" setTo="hide">Hide me</$button>
<$reveal type="match" state="$:/SampleRevealState" text="show"> <$reveal type="match" state="$:/SampleRevealState1" text="show">
! This is the revealed content ! This is the revealed content
And this is some text And this is some text
@ -48,14 +48,14 @@ And this is some text
A slider appears as a single button that can be used to toggle the display of the contained content. A slider appears as a single button that can be used to toggle the display of the contained content.
<<wikitext-example-without-html '<$reveal type="nomatch" state="$:/SampleRevealState" text="show"> <<wikitext-example-without-html '<$reveal type="nomatch" state="$:/SampleRevealState2" text="show">
<$button set="$:/SampleRevealState" setTo="show">Show me</$button> <$button set="$:/SampleRevealState2" setTo="show">Show me</$button>
</$reveal> </$reveal>
<$reveal type="match" state="$:/SampleRevealState" text="show"> <$reveal type="match" state="$:/SampleRevealState2" text="show">
<$button set="$:/SampleRevealState" setTo="hide">Hide me</$button> <$button set="$:/SampleRevealState2" setTo="hide">Hide me</$button>
! This is the revealed content ! This is the revealed content
And this is some text And this is some text