Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-13 Thread Alex Hough
a possible use case would be to edit an image in situ. I've tried the code with a png drawn in TW, but it gets opened as data no the image I drew a picture and used it to create a thumbnail using the thumbnail macro. It would be nice to update a image without opening it and for that image to

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-12 Thread Tobias Beer
Hi Matabele, > 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... > Be so kind as to post an example at some point, for us to have a look at how

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-12 Thread Matabele
Hi Tobias 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. I 're-use' the same edit-text box to enter data into each section of the form -- by simply

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-12 Thread Tobias Beer
Hi Matabele, > Nice -- I have a couple of applications for this version. > One thing I am not sure about with this is: There is no "click to save" or "cancel" here. So, this feels quite unsafe as an editor. I'll see if I can't have tobibeer/inc

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-11 Thread Tobias Beer
Hi Matabele, Nice tip, here's a slightly pimped up version: \define qualifyState() < <$vars state=<>> <$checkbox tiddler=<> field="text" checked="edit" unchecked="" class= "check-edit">{{$:/core/images/edit-button}} <$link><$view field= "title"/> <$reveal state=<> type="match" text="edit">

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-11 Thread Matabele
Hi Tobias Nice -- I have a couple of applications for this version. regards On Tuesday, 12 January 2016 08:57:08 UTC+2, Tobias Beer wrote: > > Hi Matabele, > > Nice tip, here's a slightly pimped up version: > -- You received this message because you are subscribed to the Google Groups

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-11 Thread Matabele
Hi Another simple mechanism to get a sticky popup for editing (the second reveal widget isn't necessary): <$checkbox field="state" checked="edit" unchecked="hide"/> <$reveal state="!!state" type="match" text="edit"> <$edit-text tiddler="target" field="text"/> <$reveal state="!!state"

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-10 Thread Tobias Beer
Hi Matabele, 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

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-10 Thread Tobias Beer
Hi Matabele, > 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? > I figured it out. It needs both classes

Re: [tw] Re: [TW5] edit-text widget with popup

2016-01-10 Thread William Jackson
Hi Tobias OK thanks — I’ll give this a try. regards On 10 January 2016 at 3:18:17 PM, Tobias Beer (beertob...@gmail.com) wrote: Hi Matabele,   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

Re: [tw] Re: [TW5] edit-text widget with popup

2015-10-31 Thread Matabele
Hi Not sure exactly what you're looking for, but try something like this: <$edit-text tiddler="$:/temp/input" tag="input" default="" focusPopup="$:/state/demo" class="tc-popup-handle"/> <$reveal state="$:/state/demo" type="nomatch" text="" default=""> <$linkcatcher to="TargetTiddler!!myfield">

Re: [tw] Re: [TW5] edit-text widget with popup

2015-10-31 Thread FrD
Hi Matabele, 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 -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop

Re: [tw] Re: [TW5] edit-text widget with popup

2015-10-30 Thread FrD
Hi Jeremy, 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

Re: [tw] Re: [TW5] edit-text widget with popup

2015-10-24 Thread FrD
Hi Jeremy, Thank you for your answer. Your example works well. The difference with the code I wrote is the class attribute of the edit-text widget. I rewrote my use case with this class attribute in the edit-text widget and removed the class attribute of the reveal (which was "tc-popup-keep").

Re: [tw] Re: [TW5] edit-text widget with popup

2015-10-24 Thread Jeremy Ruston
Here’s a very simple example of a dropdown using focusPopup: — Editing TargetTiddler. <$edit-text tiddler="TargetTiddler" tag="input" default="" focusPopup="$:/state/demo" class="tc-popup-handle"/> <$reveal state="$:/state/demo" type="nomatch" text="" default=""> <$linkcatcher