FYI:

In a button you do not need to use messages or params in the button but can 
use actions= <<action-macroname>> to drive the actions. you can also place 
actionwidgets inside the button, even wrapping them in lists or 
conditionally. Use the actionSend message widget etc... Then rather than 
paramObject param etc.. you can supply the fieldname="value" 
fieldname1={{transcluded}} fielname2=<<var>> to the action widget.

The term hash map is almost obsolete in tiddlywiki at a wikitext level, so 
either it should be described or deprecated in the documentation.

Tones
 
On Thursday, 17 December 2020 at 04:34:01 UTC+11 Mark S. wrote:

> Looking at the code for the Button widget, I don't see any place where 
> paramObject  gets populated. I do see it for the send-message widget. So 
> I'm guessing that you can't use "paramObject" with the button widget 
> without hacking the button widget code.
>
> On Wednesday, December 16, 2020 at 7:52:34 AM UTC-8 [email protected] 
> wrote:
>
>> On Wednesday, December 16, 2020 at 11:00:16 AM UTC-4 Mark S. wrote:
>>
>>> On Tuesday, December 15, 2020 at 8:10:42 PM UTC-8  wrote:
>>>
>>>> I often struggle with filter syntax so thanks for the counter-example 
>>>> as I find those easiest to learn from.
>>>>
>>>> In playing around with it, there is an interesting subtlety with Mark's 
>>>> solution that makes it slightly different/better.
>>>>
>>>>
>>> I admit my approach is a kludge. It was just submitted as an 
>>> alternative. It has the advantage of being slightly easier to read. Yours 
>>> is probably the proper way to do such things.
>>>  
>>>
>>
>> Looking at the OPs format ... while these other options (sticking things 
>> in an actions macro in the widget or in the actions= or transcluding a 
>> filter into the button field= options) are available, could someone 
>> illuminate the formatting of the "hashmap" that needs to be provided with 
>> paramObject= if you want to use <$button message="tm-new-tiddler" 
>> param="Template1Button" paramObject= ...> and try to feed the tags in that 
>> way using Mark's method? Every message seems to have a paramObject option 
>> but none of the manual pages have an example of its use.
>>
>> Thanks,
>> /Mike
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ca361f1d-4b19-4758-a465-3e2b3a0f6db4n%40googlegroups.com.

Reply via email to