[Question]: What event is fired when a component's Id is changed?
Question
I'd like to trigger some behavior when a component's Id is changed in the Settings panel. I've tried editor.on() with the following events:
component:update:idcomponent:update:Idcomponent:update:{id}component:update:{Id}
following the documentation here for component:update:propertyName, but none of them trigger the callback (() => console.log("Testing")). What event should I listen to with editor.on()?
Answers (2)
After some experimentation and looking through the source, component:update:attributes is what's fired.
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.
Issue #1875
[QUESTION] ID changes when importing html or passing html in components prop in config.
Hi, I built a component and block that I can drag and drop in the canvas. My issue is that some styles rely on the ID. I know this might no...
Issue #580
[Question] Any/Trigger event when any block is dropped inside canvas?
Hey, How can I trigger some event when any new block or content inside canvas is updated? Something like editor.onCanvasUpdate() Thanks!
Issue #581
Reading component related events
The Editor API wiki lists a set of component-related events that can be listened to (e.g. component:add, component:update). There is howeve...
Issue #1814
[Question]: How to fire event which triggers component:selected with my component
I want to select my component whenever it is dragged from blocks to canvas and rendered, I have tried with registering events on component:...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.