The easiest way would be to have a MutatioObserver <https://developer.mozilla.org/en/docs/Web/API/MutationObserver> listening on changes and reporting back through a port.
On Tuesday, January 31, 2017 at 5:14:51 PM UTC+1, Rupert Smith wrote: > > If I can get an event to fire then I can use debois/elm-dom to get its > size. > > I am rendering some markdown into a div, and I want to pick up the new > size of the div as its contents change. The markdown is being edited > elsewhere, so I can't just use onInput. It is possiblt to walk around the > DOM tree with elm-dom, but that is something I would rather avoid. Can > anyone think of a way of getting an event to trigger on the div having its > contents changed? > > Looking through the list of DOM events, I didn't figure out yet which > event I can make use of... > > http://www.w3schools.com/jsref/dom_obj_event.asp > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
