[tw5] Edit-Text Widget

2022-01-17 Thread Dave Kor
I am a little puzzled by the edit-text widget's design. It uses html's or tag for data entry, yet the widget does not support some of the basic input tag's attribute? For instance while 's "rows" attribute is supported, there is no way to set the "cols" attribute. In a similar vein, the htm

[tw5] Edit-text widget question

2021-01-13 Thread History Buff
Hello all, I'm in the process of implementing a few edit-text widgets to ease the editing of fields. In the process, I noticed that the size of the textarea box is affected by the $:/config/TextEditor/EditorHeight/Mode tiddler and the $:/config/TextEditor/EditorHeight/Height tiddler which I had

[tw5] edit text widget + autocomplete: could anyone guide me on a high level what concepts I'd need to learn in order to build this?

2019-09-12 Thread TonyM
Melvin A profitable path to follow with tiddlywiki is to clone and edit tiddlers that come with tiddlywiki. Just be thorough and you can clone the advanced search and start build your own custom search. Regards Tony -- You received this message because you are subscribed to the Google Groups

[tw5] edit text widget + autocomplete: could anyone guide me on a high level what concepts I'd need to learn in order to build this?

2019-09-12 Thread Melvin
I don't think this feature exists yet, and I'm still relatively new to TiddlyWiki. I want to create a TiddlyWiki tag (or sets of tags) that does the following: 1. There is a search bar 2. It has autocomplete/a typeahead 3. It looks in a JSON tiddler for options on autocomplete 4. Once you click

[tw5] edit-text widget to change a field in the same tiddler

2019-07-22 Thread Luis Gonzalez
The documentation says: > " the *EditTextWidget can not* change properties of the tiddler it is > embedded in or part of. It can only change fields of *other* tiddlers." > So I cannot put the code: <$edit-text field="description"/> to change the description of the tiddler. What is the corre

[tw5] Edit-text widget

2019-03-13 Thread Mohammad
Consider the below macro. It gets a filter and a JSON tiddler and adds all tiddlers from filter output to the JSON tiddler. \define sl-macro(filter,tiddler) <$button set=<> setTo="hide"> Select all <$list filter=<<__filter__>> variable="Item"> <$action-setfield $tiddler=<<__tiddler__>> $index=<>

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 propa

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 (al

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 "Tiddly

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"> <$edit

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" type="matc

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

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 *tc-

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 cl

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 rec

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-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 th

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

2015-10-24 Thread Jed Carty
This will be helpful for giving instructions instead of some of the other buttons I have been using. -- 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+un

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 to="TargetTiddle

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

2015-10-24 Thread FrD
Hi Jed, Thank you for looking at this. I've posted just after you and didn't see your text. In fact I did try what you propose. It works (not as good as I thought) in Chrome but does not work in firefox; at least for me (firefow 41.0.2, windows 8.1) FrD Le samedi 24 octobre 2015 16:21:57 UTC+2

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

2015-10-24 Thread Jed Carty
I had never noticed that before. The popup mechanism is the same as with the button widget, you can use something like: <$edit-text tiddler='foo' popupFocus='bar'/> <$reveal type='popup' state='bar'> Something here although nothing has been staying visible for more than just a second. I will

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

2015-10-24 Thread FrD
Hi, I managed to have it working. The code looks like : <$edit-text tiddler="AuxTest" field="inputfield" focusPopup="PopupState"/> <$reveal type="popup" state="PopupState" class="tc-popup-keep"> {{PopupTiddler}} With a <$reveal> after the <$edit-text> it works; at least if you keep the mouse

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

2015-10-24 Thread FrD
Hi, I've read in the doc (http://tiddlywiki.com/#EditTextWidget) that the edit-text widget can trigger a popup with the option focusPopup="PopupStateTiddler". I've tried to use this construct but with no results. My goal was to have a popup appear with buttons to give a value to the field (via