Issue #1386Opened August 27, 2018by mariselvanm1 reactions

Is there any "Resize event" for components?

Question

I want to read the resize event when an element is triggered for resizing.

My current Code looks like this, ` editor.on("component:resize", function(model) {

              console.log('model',model);
       });`

But, It is not working .

Is there any option to do this?

Answers (2)

arthuralmeidapAugust 30, 20181 reactions

Since the resize is just changing the value for width and/or height I haven't tried but I think you could try with the event styleManager:change:{propertyName}

Take a look here for available events: https://grapesjs.com/docs/api/editor.html#available-events

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.