Hello Sami,
I just tried the bringForward() method and it works as expected. I piled up several card widgets on top of each other and then called bringForward with the ids of two widgets that were obscured by others. As expected, they were brought to the front with a call like:
miro.board.widgets.bringForward(d"3074457351646073464", "3074457351646197085"])
Calling sendBackward pushed them to the bottom of the pile of widgets.
I tested with card widgets. Are you experiencing this problem with a specific type of widget? If you could describe how to reproduce the issue, we can look into it.
And yes, you should put any calls to the SDK inside the onReady() callback:
https://developers.miro.com/docs/the-windowmiro-object#section-on-ready
Kind regards.
Daniela
Hello Sami,
I just tried the bringForward() method and it works as expected. I piled up several card widgets on top of each other and then called bringForward with the ids of two widgets that were obscured by others. As expected, they were brought to the front with a call like:
miro.board.widgets.bringForward(d"3074457351646073464", "3074457351646197085"])
Calling sendBackward pushed them to the bottom of the pile of widgets.
I tested with card widgets. Are you experiencing this problem with a specific type of widget? If you could describe how to reproduce the issue, we can look into it.
And yes, you should put any calls to the SDK inside the onReady() callback:
https://developers.miro.com/docs/the-windowmiro-object#section-on-ready
Kind regards.
Daniela
Hi, yes the onReady() callback seems to have been the issue, thanks a lot for your help