DART - resizing a div element

I use CSS3 resize: vertical;to allow the user to resize the Div and would like to be notified when this happens (so that I can resize other elements with Dart code if necessary).

How can I attach an event listener for a user resize event? ( DivElement.on.resizedoes not exist.)

+2
source share
1 answer

If you want to watch an event that is not specified in the getter on, you can use $dom_addEventListenerto set up an event listener.

Thus, if you want to use something like nonexistent divElement.on.resize, you can use:

divElement.$dom_addEventListener("resize", (e) {
  // event occurs
});

, click resize, , ( javascript).

+2

Source: https://habr.com/ru/post/1535264/


All Articles