Children are not attached to the frame.

  • 22 December 2020
  • 2 replies
  • 417 views

let image = miro.board.widgets.create({type:'image', url: url, x: canvasX, y: canvasY})
let text = miro.board.widgets.create({type:'shape', x: canvasX, y: canvasY, text: "<strong>Title<br/><a href='https://www.google.com/'>Google url</a></strong>"})

miro.board.widgets.create({type:'frame', width: 300, height: 500, title: "Test", childrenIds: [image[0].id, text[0].id], style:{backgroundColor: "#ffffff"}})
}

Here is code snippet. This adds a frame and two elements to it. But frame and children don't belong each other. When i start dragging frame children stay static. Is there any way to make child elements nested to frame?

farbodsaraf 3 years ago

Hi Ilyas - We’re aware of this issue. There’s currently no way to programmatically make child elements nested to a frame. We have plans to fix this in the future. Stay tuned!

 

View original

2 replies

Userlevel 2
Badge +1

Hi Ilyas - We’re aware of this issue. There’s currently no way to programmatically make child elements nested to a frame. We have plans to fix this in the future. Stay tuned!

 

I have the same problem. Is there any other way to group widgets together programmatically?

 

Reply