# Mogelijk om event handlers aan widgets te koppelen in thema/plugin?

**URL:** <https://meta.discourse.org/t/possible-to-attach-event-handlers-to-widgets-in-theme-plugin/166204>\
**Category:** Development\
**Created:** [4 oktober 2020 om 15:42 UTC](https://meta.discourse.org/t/possible-to-attach-event-handlers-to-widgets-in-theme-plugin/166204 "2020-10-04T15:42:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dchouinard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dchouinard/32/194662_2.png) [@dchouinard](https://meta.discourse.org/u/dchouinard)\
**Post date:** [4 oktober 2020 om 15:57 UTC](https://meta.discourse.org/t/possible-to-attach-event-handlers-to-widgets-in-theme-plugin/166204/3 "2020-10-04T15:57:28Z")

</div>

Ah, thank you! Are these standard DOM events? i.e.:

- From the examples, it doesn’t seems like the events are standard DOM events like `click`, `mouseover`, etc. Is it possible to do e.g. `api.attachWidgetAction("topic-list-item", "click", ...)`?
- Is it possible to access `event`, e.g. to do `event.stopPropagation()`?
- If this aren’t standard DOM events, how do I find out which events a particular widget broadcasts?

Thanks for the pointers!

---

_[View the full topic](https://meta.discourse.org/t/possible-to-attach-event-handlers-to-widgets-in-theme-plugin/166204)._
