[tw5] Re: Edit-Text Widget

2022-01-17 Thread Mat
I believe this recent PR will remedy this.

Extend the EditTextWidget and fields to allow Date-Pickers and other 
tags #6377 

...

BTW, did you know that https://talk.tiddlywiki.org/ is much more active 
than this google group - and that the posts to google group also appear 
there (but people can't reply there).

<:-)

On Monday, January 17, 2022 at 12:26:08 PM UTC+1 Dave Kor wrote:

> 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 html  tag has support for data entry of 
> numbers using the "type=number" attribute. Yet, we cannot specify the "min" 
> and "max" attributes. 
>
> I feel adding support for these three attributes should be quite simple 
> and would add significant functionality to the widget. Does anyone agree 
> with me?
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/01331b48-7ae6-471d-8404-7935f3b95857n%40googlegroups.com.


[tw5] Re: Edit-text widget question

2021-01-14 Thread History Buff
Thanks Mark,

That worked just fine. I had tried that before, but didn't think to add the 
"!important" part of that.

On Wednesday, January 13, 2021 at 6:27:11 PM UTC-7 Mark S. wrote:

> If you make a stylesheet tiddler (a tiddler tagged $:/tags/Stylesheet) and 
> put in this content:
>
> textarea.fieldarea {
> height: 5em !important  ;
> }
>
> You can override the default height that is being used. 
>
>
>
> On Wednesday, January 13, 2021 at 4:19:15 PM UTC-8 History Buff wrote:
>
>> Here's the simple code that I'm using in a separate tiddler that I 
>> transclude into a different tiddler. When the editor height mode is set to 
>> fixed the edit-text "window" is whatever is set in the editorheight tiddler 
>> which is huge.
>>
>> Notes:
>>   <$edit-text
>> tiddler=<>
>> field=notes
>> class=fieldarea
>> tag=textarea
>> />
>>
>>
>> On Wednesday, January 13, 2021 at 5:09:20 PM UTC-7 Mark S. wrote:
>>
>>> You might show an example of what you're doing.
>>>
>>> If you're doing what I think you're doing, then you'll probably need to 
>>> wrap a div with a custom class around your edit boxes, and then create a 
>>> stylesheet that uses !important to override the setting. The setting gets 
>>> placed via a style attribute, and AFAIK the only way to override that is 
>>> with an !important style.
>>>
>>> On Wednesday, January 13, 2021 at 1:32:31 PM UTC-8 History Buff wrote:
>>>
 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 
 previously 
 set as fixed for editing relatively large tiddlers to keep the edit bar 
 visible. 

 Is there a way that I can have separate settings for my individual 
 edit-text widgets and my the normal editing of tiddlers? I'm asking this 
 because, at present, the text box for my edit-text widgets are 
 unreasonably 
 large unless I set the mode to auto.

 Thanks in advance!

>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2797d80c-8cbf-461b-8d91-4c26f8952df0n%40googlegroups.com.


[tw5] Re: Edit-text widget question

2021-01-13 Thread 'Mark S.' via TiddlyWiki
If you make a stylesheet tiddler (a tiddler tagged $:/tags/Stylesheet) and 
put in this content:

textarea.fieldarea {
height: 5em !important  ;
}

You can override the default height that is being used. 



On Wednesday, January 13, 2021 at 4:19:15 PM UTC-8 History Buff wrote:

> Here's the simple code that I'm using in a separate tiddler that I 
> transclude into a different tiddler. When the editor height mode is set to 
> fixed the edit-text "window" is whatever is set in the editorheight tiddler 
> which is huge.
>
> Notes:
>   <$edit-text
> tiddler=<>
> field=notes
> class=fieldarea
> tag=textarea
> />
>
>
> On Wednesday, January 13, 2021 at 5:09:20 PM UTC-7 Mark S. wrote:
>
>> You might show an example of what you're doing.
>>
>> If you're doing what I think you're doing, then you'll probably need to 
>> wrap a div with a custom class around your edit boxes, and then create a 
>> stylesheet that uses !important to override the setting. The setting gets 
>> placed via a style attribute, and AFAIK the only way to override that is 
>> with an !important style.
>>
>> On Wednesday, January 13, 2021 at 1:32:31 PM UTC-8 History Buff wrote:
>>
>>> 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 previously 
>>> set as fixed for editing relatively large tiddlers to keep the edit bar 
>>> visible. 
>>>
>>> Is there a way that I can have separate settings for my individual 
>>> edit-text widgets and my the normal editing of tiddlers? I'm asking this 
>>> because, at present, the text box for my edit-text widgets are unreasonably 
>>> large unless I set the mode to auto.
>>>
>>> Thanks in advance!
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4a9d2273-721d-4d37-863e-2e7a1233b9f7n%40googlegroups.com.


[tw5] Re: Edit-text widget question

2021-01-13 Thread History Buff
Here's the simple code that I'm using in a separate tiddler that I 
transclude into a different tiddler. When the editor height mode is set to 
fixed the edit-text "window" is whatever is set in the editorheight tiddler 
which is huge.

Notes:
  <$edit-text
tiddler=<>
field=notes
class=fieldarea
tag=textarea
/>


On Wednesday, January 13, 2021 at 5:09:20 PM UTC-7 Mark S. wrote:

> You might show an example of what you're doing.
>
> If you're doing what I think you're doing, then you'll probably need to 
> wrap a div with a custom class around your edit boxes, and then create a 
> stylesheet that uses !important to override the setting. The setting gets 
> placed via a style attribute, and AFAIK the only way to override that is 
> with an !important style.
>
> On Wednesday, January 13, 2021 at 1:32:31 PM UTC-8 History Buff wrote:
>
>> 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 previously 
>> set as fixed for editing relatively large tiddlers to keep the edit bar 
>> visible. 
>>
>> Is there a way that I can have separate settings for my individual 
>> edit-text widgets and my the normal editing of tiddlers? I'm asking this 
>> because, at present, the text box for my edit-text widgets are unreasonably 
>> large unless I set the mode to auto.
>>
>> Thanks in advance!
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/40150146-b216-4338-9596-a1887aedee7en%40googlegroups.com.


[tw5] Re: Edit-text widget question

2021-01-13 Thread 'Mark S.' via TiddlyWiki
You might show an example of what you're doing.

If you're doing what I think you're doing, then you'll probably need to 
wrap a div with a custom class around your edit boxes, and then create a 
stylesheet that uses !important to override the setting. The setting gets 
placed via a style attribute, and AFAIK the only way to override that is 
with an !important style.

On Wednesday, January 13, 2021 at 1:32:31 PM UTC-8 History Buff wrote:

> 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 previously 
> set as fixed for editing relatively large tiddlers to keep the edit bar 
> visible. 
>
> Is there a way that I can have separate settings for my individual 
> edit-text widgets and my the normal editing of tiddlers? I'm asking this 
> because, at present, the text box for my edit-text widgets are unreasonably 
> large unless I set the mode to auto.
>
> Thanks in advance!
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b96ea245-9f11-4ec3-8a61-8a84beb5e69cn%40googlegroups.com.


[tw5] Re: 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-13 Thread Melvin
test

On Thursday, September 12, 2019 at 4:10:02 PM UTC+2, Melvin wrote:
>
> I don't think this feature exists yet, and I'm still relatively new to 
> TiddlyWiki. Well, it does exist for the sidebar search bar that looks at 
> all tiddlers (e.g. http://2585.tiddlyspot.com/), that's almost exactly 
> what I want, but then in a tiddler.
>
> 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 on a suggestion, it is added to somewhere. This could 
> be: a tiddler with data, the tiddler where the search bar is in (either 
> directly or via a field) or anything else.
>
> What I know:
> A. There is an edit text widget, so step 1 is done (
> https://tiddlywiki.com/static/EditTextWidget.html).
> B. I don't know how you can add an autocomplete function to such a widget. 
> So I have no clue about step 2.
> C. I also don't know how to select an autocomplete source. So I have no 
> clue about step 3.
> D. Since the autocomplete does not exist, I don't know how to create a 
> suggestion list that once clicked on, it'll be added. However, I do know 
> that similar solutions have been implemented for the select widget (
> https://tiddlywiki.com/static/SelectWidget.html).
>
> Does anyone have any idea on what concepts I should learn and what 
> approach I should take?
>
> Should I take a JS approach and create a macro? And if so, should I create 
> a new tag, or extend the edit text widget? 
>
> Or should I define a function within a Tiddler comprised of combination of 
> TiddlyWiki tags?
>
> What do you think would be a feasible design to implement this, and what 
> concepts are needed?
>
> Goal: I want to create a JSON file with all kinds of brand specific food 
> that I eat, and then I want to store that in my daily journal. Since I want 
> to do data analysis on it later, I don't want to make typo's.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8cc21754-2a10-4495-90d2-31dd442d273b%40googlegroups.com.


[tw5] Re: 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-13 Thread Mat
Melvin, might you be describing the SelectWidget? It's not a "search bar" 
but might be interpreted as such. It can use a LinkCatcherWidget to "catch" 
the selection and do some action.

Not sure about the JSON part tho. Direct JSON manipulation is still very 
limited in TW.

<:-)

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/79c46370-b7b5-4e26-bc1b-bcb506643896%40googlegroups.com.


[tw5] Re: 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
Hmm... it seems I was wrong. It probably *is* possible.

There are some examples written in the source code, so I'll just try to 
figure out how those things work and edit that.

An example is here on how to implement typeahead/autocomplete functionality.

https://github.com/Jermolene/TiddlyWiki5/pull/2585/commits/47920d28ee0a47e3e64b1a277efb6cc42eae78a3

On Thursday, September 12, 2019 at 4:10:02 PM UTC+2, Melvin wrote:
>
> I don't think this feature exists yet, and I'm still relatively new to 
> TiddlyWiki. Well, it does exist for the sidebar search bar that looks at 
> all tiddlers (e.g. http://2585.tiddlyspot.com/), that's almost exactly 
> what I want, but then in a tiddler.
>
> 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 on a suggestion, it is added to somewhere. This could 
> be: a tiddler with data, the tiddler where the search bar is in (either 
> directly or via a field) or anything else.
>
> What I know:
> A. There is an edit text widget, so step 1 is done (
> https://tiddlywiki.com/static/EditTextWidget.html).
> B. I don't know how you can add an autocomplete function to such a widget. 
> So I have no clue about step 2.
> C. I also don't know how to select an autocomplete source. So I have no 
> clue about step 3.
> D. Since the autocomplete does not exist, I don't know how to create a 
> suggestion list that once clicked on, it'll be added. However, I do know 
> that similar solutions have been implemented for the select widget (
> https://tiddlywiki.com/static/SelectWidget.html).
>
> Does anyone have any idea on what concepts I should learn and what 
> approach I should take?
>
> Should I take a JS approach and create a macro? And if so, should I create 
> a new tag, or extend the edit text widget? 
>
> Or should I define a function within a Tiddler comprised of combination of 
> TiddlyWiki tags?
>
> What do you think would be a feasible design to implement this, and what 
> concepts are needed?
>
> Goal: I want to create a JSON file with all kinds of brand specific food 
> that I eat, and then I want to store that in my daily journal. Since I want 
> to do data analysis on it later, I don't want to make typo's.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/da6770d6-a459-437d-bf12-3e4a85dcfab0%40googlegroups.com.


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

2019-07-22 Thread Watt
Nice one Luis! State tiddlers are the way to go, temporary 'storage' tiddlers 
that let you write their field contents back where you want it, when you want 
it;
https://tiddlywiki.com/#StateMechanism

The reveal is an extra refinement - thanks for sharing. Keep them coming.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fe3d1f37-b980-4484-a467-bca05c5ee2c2%40googlegroups.com.


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

2019-07-22 Thread Luis Gonzalez
I found a easy way. 

Descriptión: <$edit-text tiddler="$:/temporalTiddler" field="description" />
<$button set="!!description" 
setTo={{$:/temporalTiddler!!description}}>Change

.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1e0e6465-43e5-43a5-9576-54946fbabb2f%40googlegroups.com.


[tw5] Re: Edit-text widget

2019-03-13 Thread Mohammad
Thanks Joshua,
Yes, its possible to have a button to update the list.
I though if there is a way to detect the change in filter as textbox is 
updated!
This needs kind of action attribute which seems is not available in 
edit-text widget!

--Mohammad


On Wednesday, March 13, 2019 at 9:41:50 PM UTC+3:30, Joshua Fontany wrote:
>
> Actually, thinking about this you might want to follow the 
> $:/AdvancedSearch pattern.
>
> Store the output of the filter in a  $:/temp/* tiddler, and display those 
> results in a list for the user.
>
> Then have the button use the $:/temp/* tiddler as the source to 
> clear/update the JSON tiddler.
>
> Then the displayed list will auto-update as the user changes the filter, 
> but it is up to them to confirm the new selection into permanent storage.
>
> Best,
> Joshua Fontany
>
> On Wednesday, March 13, 2019 at 11:08:03 AM UTC-7, Joshua Fontany wrote:
>>
>> Try this sl-macro. "Setting" an index without a value deletes that index.
>>
>> ```
>> \define sl-macro(filter,tiddler)
>> <$button set=<> setTo="hide"> Select all
>> <$list filter=<<__tiddler__>> variable="Remove">
>> <$action-setfield $tiddler=<<__tiddler__>> $index=<> />
>> 
>> <$list filter=<<__filter__>> variable="Item">
>> <$action-setfield $tiddler=<<__tiddler__>> $index=<> 
>> $value="selected"/>
>> 
>> 
>> \end
>> ```
>>
>>
>>
>> On Wednesday, March 13, 2019 at 7:07:15 AM UTC-7, Mohammad wrote:
>>>
>>> Attached is a sample tiddler of above question to simple test on 
>>> tiddlywiki.com!
>>>
>>> For example try
>>> "[tag[About]]" and then enter "[tag[Android]]".
>>>
>>> I know pressing Add all has a button and you clear the previous list! 
>>> But here my question is to remove previous selection on
>>> filter change in editbox!
>>>
>>> --Mohammad
>>>
>>>
>>> On Wednesday, March 13, 2019 at 5:30:40 PM UTC+3:30, Mohammad wrote:

 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=<> 
 $value="selected"/>
 
 
 \end



 No consider the below example
 It has a textbox to get a filter from user and then call sl-macro

 <$edit-text
 tiddler="state/myExmp"
 tag="input"
 default=""
 placeholder="filter search"
 />
 <$macrocall $name=sl-macro filter="[subfilter{state/myExmp}]" 
 tiddler="state/Myselection"/>

 This works fine! *My question* is when I change the filter in a text 
 box and try to add new set of selected tiddlers,
 still the previous selection is there (in the JSON tiddler) I use the 
 selected tiddler somewhere else for further processing!
 Is there any way to detect the new filter in the textbox and remove the 
 previous selection from JSON tiddler?!


 --Mohammad

>>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send 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/56f20d73-fb12-4311-a3e7-c005946f04bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Edit-text widget

2019-03-13 Thread Joshua Fontany
Actually, thinking about this you might want to follow the 
$:/AdvancedSearch pattern.

Store the output of the filter in a  $:/temp/* tiddler, and display those 
results in a list for the user.

Then have the button use the $:/temp/* tiddler as the source to 
clear/update the JSON tiddler.

Then the displayed list will auto-update as the user changes the filter, 
but it is up to them to confirm the new selection into permanent storage.

Best,
Joshua Fontany

On Wednesday, March 13, 2019 at 11:08:03 AM UTC-7, Joshua Fontany wrote:
>
> Try this sl-macro. "Setting" an index without a value deletes that index.
>
> ```
> \define sl-macro(filter,tiddler)
> <$button set=<> setTo="hide"> Select all
> <$list filter=<<__tiddler__>> variable="Remove">
> <$action-setfield $tiddler=<<__tiddler__>> $index=<> />
> 
> <$list filter=<<__filter__>> variable="Item">
> <$action-setfield $tiddler=<<__tiddler__>> $index=<> 
> $value="selected"/>
> 
> 
> \end
> ```
>
>
>
> On Wednesday, March 13, 2019 at 7:07:15 AM UTC-7, Mohammad wrote:
>>
>> Attached is a sample tiddler of above question to simple test on 
>> tiddlywiki.com!
>>
>> For example try
>> "[tag[About]]" and then enter "[tag[Android]]".
>>
>> I know pressing Add all has a button and you clear the previous list! But 
>> here my question is to remove previous selection on
>> filter change in editbox!
>>
>> --Mohammad
>>
>>
>> On Wednesday, March 13, 2019 at 5:30:40 PM UTC+3:30, Mohammad wrote:
>>>
>>> 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=<> 
>>> $value="selected"/>
>>> 
>>> 
>>> \end
>>>
>>>
>>>
>>> No consider the below example
>>> It has a textbox to get a filter from user and then call sl-macro
>>>
>>> <$edit-text
>>> tiddler="state/myExmp"
>>> tag="input"
>>> default=""
>>> placeholder="filter search"
>>> />
>>> <$macrocall $name=sl-macro filter="[subfilter{state/myExmp}]" 
>>> tiddler="state/Myselection"/>
>>>
>>> This works fine! *My question* is when I change the filter in a text 
>>> box and try to add new set of selected tiddlers,
>>> still the previous selection is there (in the JSON tiddler) I use the 
>>> selected tiddler somewhere else for further processing!
>>> Is there any way to detect the new filter in the textbox and remove the 
>>> previous selection from JSON tiddler?!
>>>
>>>
>>> --Mohammad
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send 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/2a79a901-0a59-426e-b2f4-f1c0a7216c47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Edit-text widget

2019-03-13 Thread Joshua Fontany
Try this sl-macro. "Setting" an index without a value deletes that index.

```
\define sl-macro(filter,tiddler)
<$button set=<> setTo="hide"> Select all
<$list filter=<<__tiddler__>> variable="Remove">
<$action-setfield $tiddler=<<__tiddler__>> $index=<> />

<$list filter=<<__filter__>> variable="Item">
<$action-setfield $tiddler=<<__tiddler__>> $index=<> 
$value="selected"/>


\end
```



On Wednesday, March 13, 2019 at 7:07:15 AM UTC-7, Mohammad wrote:
>
> Attached is a sample tiddler of above question to simple test on 
> tiddlywiki.com!
>
> For example try
> "[tag[About]]" and then enter "[tag[Android]]".
>
> I know pressing Add all has a button and you clear the previous list! But 
> here my question is to remove previous selection on
> filter change in editbox!
>
> --Mohammad
>
>
> On Wednesday, March 13, 2019 at 5:30:40 PM UTC+3:30, Mohammad wrote:
>>
>> 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=<> 
>> $value="selected"/>
>> 
>> 
>> \end
>>
>>
>>
>> No consider the below example
>> It has a textbox to get a filter from user and then call sl-macro
>>
>> <$edit-text
>> tiddler="state/myExmp"
>> tag="input"
>> default=""
>> placeholder="filter search"
>> />
>> <$macrocall $name=sl-macro filter="[subfilter{state/myExmp}]" 
>> tiddler="state/Myselection"/>
>>
>> This works fine! *My question* is when I change the filter in a text box 
>> and try to add new set of selected tiddlers,
>> still the previous selection is there (in the JSON tiddler) I use the 
>> selected tiddler somewhere else for further processing!
>> Is there any way to detect the new filter in the textbox and remove the 
>> previous selection from JSON tiddler?!
>>
>>
>> --Mohammad
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send 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/d768b550-47e5-4dd8-a2bf-ded93b928fa1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Edit-text widget

2019-03-13 Thread Mohammad
Attached is a sample tiddler of above question to simple test on 
tiddlywiki.com!

For example try
"[tag[About]]" and then enter "[tag[Android]]".

I know pressing Add all has a button and you clear the previous list! But 
here my question is to remove previous selection on
filter change in editbox!

--Mohammad


On Wednesday, March 13, 2019 at 5:30:40 PM UTC+3:30, Mohammad wrote:
>
> 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=<> 
> $value="selected"/>
> 
> 
> \end
>
>
>
> No consider the below example
> It has a textbox to get a filter from user and then call sl-macro
>
> <$edit-text
> tiddler="state/myExmp"
> tag="input"
> default=""
> placeholder="filter search"
> />
> <$macrocall $name=sl-macro filter="[subfilter{state/myExmp}]" 
> tiddler="state/Myselection"/>
>
> This works fine! *My question* is when I change the filter in a text box 
> and try to add new set of selected tiddlers,
> still the previous selection is there (in the JSON tiddler) I use the 
> selected tiddler somewhere else for further processing!
> Is there any way to detect the new filter in the textbox and remove the 
> previous selection from JSON tiddler?!
>
>
> --Mohammad
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send 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/366e18a5-3f12-4a4f-be0a-b444a6fa75db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Question.tid
Description: Binary data