<$edit-text tiddler="AuxTest" field="inputfield" focusPopup="PopupState"/>
<$reveal type="popup" state="PopupState" class="tc-popup-keep">
<div class="tc-drop-down">
{{PopupTiddler}}
</div></$reveal>
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/22ffdfb8-9a08-44ad-a0b0-48628ea3409e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm back on this topic.
How would I modify the code in order to set a field in the TargetTiddler (different from the text field) ?
The only way I found was to use buttons in the dropdown with <$action-setField ...>.
I was wondering if there is somethin much simpler like the use of the <$link> and <$linkcatcher> widgets.
Thanks
FrD
<$edit-text tiddler="$:/temp/input" tag="input" default="" focusPopup="$:/state/demo" class="tc-popup-handle"/>
<$reveal state="$:/state/demo" type="nomatch" text="" default="">
<div class="tc-block-dropdown">
<$linkcatcher to="TargetTiddler!!myfield">
<div class="tc-dropdown-item">
[[A value to set]]
[[Another value]]
[[These links could be generated]]
[[by a list widget, too]]
</div>
</$linkcatcher>
</div>
</$reveal>
That's exactly what I was looking for. Thanks a lot. I should have tried that but believed that the "to" attribute had to be a tiddler.
FrD
Not sure exactly what you're looking for, but try something like this:
I tried to add the class tc-popup-keep to the reveal, but the popup won't be sticky.Any ideas how to make a reveal given focus by an edit-text-widget not close when clicking inside?
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/kuq-FDMDWWg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
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/5e7f3ea4-df2f-46e4-996c-e0b0555929e1%40googlegroups.com.
<$checkbox field="state" checked="edit" unchecked="hide"/>
<$reveal state="!!state" type="match" text="edit">
<$edit-text tiddler="target" field="text"/>
</$reveal>
<$reveal state="!!state" type="match" text="hide">
Click to Edit
</$reveal>
\define check-edit()<$vars currentTiddler="HelloThere">
<$vars state=<<qualify """$:/temp/check-edit/$(currentTiddler)$""">>>
<$checkbox tiddler=<<state>> field="text" checked="edit" unchecked="" class="check-edit">{{$:/core/images/edit-button}}</$checkbox> <$link><$view field="title"/></$link>
<$reveal state=<<state>> type="match" text="edit">
<$edit-text tiddler=<<target>> field="text" class="tc-edit-texteditor" minHeight="200px" autoHeight="yes"/>
</$reveal>
</$vars>
</$vars>\end
<<check-edit>>
<style>
.check-edit input{display:none;}
.check-edit svg{fill:grey;height:1em;width:1em;curser:pointer;}
.check-edit:hover svg{fill:black;}
</style>
Nice -- I have a couple of applications for this version.
The application I had in mind is for entering data, beginning with a blank form. I prefer pop-up type edit-text boxes, as I have several different sections of the form into which to enter data...
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/c467c512-546b-4393-8005-f1aa1e431d5b%40googlegroups.com.