You don’t need Custom Elements for this. You can use a Mutation Observer and look for elements with certain characteristics and bind events to those elements that extracts the information you need and publish it as a custom event that you would then capture in Elm.
pdamoc
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Dispatching custom events only if needed | 8 | 1487 | December 21, 2018 | |
| Can Elm do this math educational game? | 10 | 1171 | March 30, 2022 | |
| Load SVG externally and wire to elm model | 6 | 903 | February 20, 2021 | |
| Get the source of an event | 4 | 581 | November 30, 2022 | |
| Elm-playground vs others and animating SVG color | 2 | 459 | February 26, 2021 |