Open vitaliibronsky opened 6 years ago
I am trying to load large image on cropper component. I am setting the image using $this.cropper.setImage(image); but I can't the loading complete event in setImage. How can I detect this event on frontend side? Regards.
This should do it for you.
var that = $this; image.onload = function() { that.cropper.setImage(image); }
var that = $this;
image.onload = function() { that.cropper.setImage(image); }
I am trying to load large image on cropper component. I am setting the image using $this.cropper.setImage(image); but I can't the loading complete event in setImage. How can I detect this event on frontend side? Regards.