Skip to main content

Hello!

I’m currently working on a plugin that tries to simulate some type of real time update behavior. I.e. when I add, modify, or delete some sticky notes inside a frame, it will trigger some action somewhere else. To all the Miro and JS experts out there: I’m wondering if there’s a way to listen for a change in the frame’s children and react to it?

The only way I can think of is leveraging the existing Miro SDK listeners so that every time a sticky note is created, it will check every relevant frame and see if the sticky note is inside one of them. I’m just a little concerned that this method won’t scale well.

Thank you in advance for your answers!

Hi @Kenneth Chen

 

The Web-SDK doesn’t offer an event to monitor the children of a Frame. It seems that the only way to do it will be what you described:

  • Using the WIDGETS_CREATED event to know when a new widget is created and if it is in a frame

I will raise this feedback to the team to add it to the backlog.


Reply