For the FastNewTiddler <http://fastnewtiddler.tiddlyspot.com/>(FNT) 
*toolbar* I hope to include a toggle switch to let the user decide if the 
tiddlers are to be created either;


   - *silently* = Default. No indication that a tiddler is created (other 
   than in sidebar lists) 
   - *visibly* = The tiddler appears right under the FastNewTiddler, in 
   viewmode 
   

...but I don't know how. But wizard Jed has solved it partly, so it should 
work!

The toolbar is intended to appear like this, *third* button showing the 
toggle. Left side shows the *silent *icon (depicting the FNT with nothing, 
- , under it) and right side showing the *visible *icon (the FNT with a 
tiddler under it):


<https://lh3.googleusercontent.com/-HXUFzdTX2k4/VUaJsI87xWI/AAAAAAAARSs/LzfK4nUXHVE/s1600/FNT_toolbar_both.png>

The code is in this tiddler 
<http://fastnewtiddler.tiddlyspot.com/#fnt%2FButtons%2Fsilently-visibly>. (and 
TWizard Jed has a variant embedded in his main FNT tiddler. I included a 
copy of it, split out here 
<http://fastnewtiddler.tiddlyspot.com/#fnt%2FButtons%2Fsilently-visibly_Jed>
.)

A click should (a) toggle between the two icons and, most importantly, (b) 
make the currently FNT-edited tiddler to be in (default) silent view OR 
showing visibly below the FNT panel in regular *viewmode*. Jeds variant 
above gets it to show in editmode!

Here follows my attempt. It is mostly copy-paste that I've tried to adapt 
so it may at first glance look like I know what I'm doing but, well, I 
don't. For instance, I'm considering renaming that boring word *class *into 
*classy* to spice it up a bit! My point: Anything can be wrong, missing, 
mutilated...:

Any help or toughts are appreciated:

<$reveal type=nomatch state='$:/state/FastNewTiddler!!show_editor' 
> text='visibly'>
> <$button set='$:/state/FastNewTiddler!!creationmode' setTo=visibly 
> class="tc-btn-invisible" message='tm-edit-tiddler' 
> param={{$:/temp/FastNewTiddler!!newtitle}}>{{img/fnt-silently}}
> </$button>
> </$reveal>
> <$reveal type=match state='$:/state/FastNewTiddler!!show_editor' 
> text='visibly'>
> <$button set='$:/state/FastNewTiddler!!creationmode' setTo=silently 
> class="tc-btn-invisible" message='tm-edit-tiddler' 
> param={{$:/temp/FastNewTiddler!!newtitle}}>{{img/fnt-visibly}}
> </$button>
> </$reveal>


Thank you!


<:-) 


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/43819db6-07ea-409d-a1b9-a72608b6cc46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to