> A follow-up question, what is the number array being written to the 
> referenced state tiddler on button press that results in the popup being 
> invoked?
>
> For reference, the documentation of the set-field action widget here 
> <https://tiddlywiki.com/static/ActionSetFieldWidget.html> includes 
> writing to a state tiddler for the popup to be rendered correctly (please 
> see the second example). The example also includes an array of numbers, 
> although different from mine (obviously): 
>
> text="(568,1443,33,39)". What is that number?
>
>
Hi Hubert, the numbers are sort-of relative coordinates of the button that 
opens the popup
They're used internally by the popup mechanism to position the popup 
above/below/leftbelow... the triggering button


> Many thanks,
> Hubert
>
>
> On Monday, 10 December 2018 09:44:52 UTC, Hubert wrote:
>>
>> Hello,
>>
>> Is it possible to invoke a popup by clicking on a checkbox? Or, 
>> alternatively, to invoke a popup when the content (text parameter) of the 
>> reveal widget matches a value?
>>
>> When I tested the documented use with the button, I've found that by 
>> pressing the button invoking the popup, TiddlyWiki writes an apparently 
>> random array of numbers to the state tiddler, such as: (43,109,93,23).
>>
>> However, when I tried to match this number by manually populating the 
>> state tiddler, the reveal widget did not invoke the popup. Now, I'm aware 
>> that the reveal widget type=popup does not really check for content to 
>> match but I was just wondering if anyone could share some more information 
>> about the internals of the popup mechanism, what's really happening on 
>> pressing the button and how much more flexibility is allowed when using 
>> popups with the reveal widget.
>>
>> What I'm trying to implement is a 'confirm dialog' in a popup that would 
>> ask the user whether they really want to perform a deletion (buttons would 
>> be displayed in the popup invoked).
>>
>> Many thanks for your input.
>>
>> Best regards,
>> Hubert
>>
>>

-- 
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/9598a08b-00d1-449a-be1d-b33d0c8d1755%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to