In EventCatcher DIY, I use a technique I’ve seen used elsewhere but not found documented.
\define my-actions()
<$action-setfield $field="log" $value=<<dom-text>> />
\end
<$eventcatcher selector="button" $click=<<my-actions>> >
<button text="alpha">alpha</button>
<!- ... ->
</$eventcatcher>
Here I set text
on the buttons, and in my action use the variable <<dom-text>>
. I saw this with <<dom-to>>
and tested with <<dom-foo>>
and it seems to work fine with an arbitrary attribute.
It seems pretty clear what it does, taking attributes of the event target and exposing them as variables in the dom-
namespace. But I don’t know where it applies. Is it only in the EventCatcher
, or are there many places that do this? I haven’t been able to find the documentation on this either on the main site or the dev one. Am I simply using the wrong search terms, am I overlooking it in the results, or is this simply not documented?