> If I include a checkbox inside a nested slider, like this:
>
> +++[To do list:]
> <<<
> [_]Task one.
> <<<
> ===
>
> Then, when I expand the slider and click the checkbox, the slider closes
> also.

When you change a checkbox state, you are actually modifying the
containing tiddler, which triggers a "refresh" that re-renders the
content.  In this particular use-case, you have a NestedSlider that
defaults to closed (+++ vs. ++++), and does *not* have any "memory" of
it's open/closed state.  Thus, each time it is rendered, it defaults
to the closed state.

To remember the open/closed state of the slider, you need to define a
'cookiename' to track that information, like this:

+++(ToDoList)[To do list:]
<<<
[_]Task one.
<<<
===

The "(ToDoList)" syntax defines the name of the cookie that remembers
the current slider open/closed state.  Each time the slider is
rendered, it's current state is restored.  Thus, when you click on a
checkbox, the containing slider will appear to remain opened after
each click.  Q.E.D

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
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 http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to