Skip to main content
Answered

Redirect user to a certain widet


Sami Ljimari
Forum|alt.badge.img+3

Miro supports a very usefull tool when sharing boards between users, where a user can send a link with a specified widget. When another user opens the board with this link, he gets automatically redirected to the position of this widget on the board.

 

Is there a method for using this functionality via the miro SDK? 

I was looking into the viewport section of the documentation as it seemed like the most probable place to have this functionality, but didn’t find it there.

 

Is this a part of the SDK and if so could someone link me to the documentation?

Best answer by Sami Ljimari

Found the answer in a different part of the documentation: https://developers.miro.com/docs/web-plugins-features#control-the-visible-area-of-the-board#control-the-visible-area-of-the-board

View original
Was it helpful?

4 replies

Sami Ljimari
Forum|alt.badge.img+3
  • Author
  • Active Contributor
  • 38 replies
  • Answer
  • June 8, 2021

Max Harper
Forum|alt.badge.img+6
  • Miro Hero
  • 373 replies
  • June 9, 2021

@Sami Ljimari  

Note that that method in the SDK is ‘deprecated’ - 

Which is a bummer, because … its super useful!


It has seemed to me that the platform team wants us to use miro.board.viewport.set()  … but I honestly think the abstraction of passing in a widget id to “zoomToObject” or something similar is really helpful. 

Perhaps the SDK team will find your and my interest in this functionality valuable. 
 
@Farbod Saraf


Sami Ljimari
Forum|alt.badge.img+3
  • Author
  • Active Contributor
  • 38 replies
  • July 2, 2021
Max Harper wrote:

@Sami Ljimari  

Note that that method in the SDK is ‘deprecated’ - 

Which is a bummer, because … its super useful!


It has seemed to me that the platform team wants us to use miro.board.viewport.set()  … but I honestly think the abstraction of passing in a widget id to “zoomToObject” or something similar is really helpful. 

Perhaps the SDK team will find your and my interest in this functionality valuable. 
 
@Farbod Saraf

I completely missed this reply, but I 100% agree with you, it is super useful for me too!


Anthony Roux
Mironeer
Forum|alt.badge.img+1

Hi @Max Harper, @Sami Ljimari,

 

With the feedback we have collected from the users, we have decided to not decommission the zoomToObject method. The warning message will be removed soon.

 

Thank you very much for raising this and explaining your use-cases.


Reply