$eventcatcher and event-detail-* property

Can someone (@saqimtiaz?) please explain to me what event-detail-* refers to here?


https://tiddlywiki.com/prerelease/#EventCatcherWidget

The only .detail property I know of is for the UIEvent Web API. But that doesn’t square up with that asterisk in event-detail-* which implies “specify which”.

What am I missing?

:confused:

Nothing shows up under $all=yes with $action-log, either.

Hi @CodaCoder event.detail is a way to attach custom data to custom events:

Ha! Now that makes sense. THANK YOU @jeremyruston

Which, of course, leads to more questions:

  • is TiddlyWiki creating custom events?
  • is TiddlyWiki adding data to custom events?
     – if so, why doesn’t any of event-detail-* show up in $action-log?
  • Is there an enumeration of tw custom events/details somewhere?
  • why am I asking so many questions?
     – don’t I have anything better to do?

The core does not currently use custom DOM events. I think the motivation for the implementation was that @saqimtiaz has some custom widgets that do generate custom DOM events.