Skip to main content
Answered

Linking to inboard object using SDK


Yash
Forum|alt.badge.img+1
  • Contributor
  • 16 replies

Hey guys,

Miro is awesome, and to learn more awsomeness of miro I have been playing with miro SDK.

I know how to create widgets like card, stickers, lines etc.
I want to link one widget, lets say sticker A to some other shape in the same board.
Visually, we can do this by selecting sticker A, then “ctrl + k” and selecting the target shape in the board.

But I cant figure out how to do this using SDK.

PS:- One alternative is to wrap the text of sticker A inside <a href="link to the board object here”>TEXT</a>. But this makes the text a hyperlink, not exactly what I want to accomplish.

 

Best answer by Boris Borodyansky

hey @Yash , no internal linking in the SDK currently.

we’ll pump it up our roadmap, see what we can do :wink:

View original
Was it helpful?

5 replies

Max Harper
Forum|alt.badge.img+6
  • Miro Hero
  • 373 replies
  • May 11, 2020

@Yash — Are you trying to center the Miro viewport onto sticky B when the “link button” of A is pressed? 


Yash
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 16 replies
  • May 11, 2020

Hi @Max Harper!

Nope. The centering of viewport onto Sticky B happens automatically if the Sticky A already has been linked to Sticky B, using Internal Linking. Thing is, we have to perform this linking manually for each object.

 

Essentially what I want to accomplish is Internal Linking by using SDK only. That is when I create Sticky A using SDK (await miro.board.widgets.create()), I should be able to somehow perform the Internal Linking of Sticky A to Sticky B (given that Sticky B already exists.)

I hope that conveys my intention clearly. If not, feel free to let me know where I am lacking.


Boris Borodyansky
Mironeer
Forum|alt.badge.img+1

hey @Yash , no internal linking in the SDK currently.

we’ll pump it up our roadmap, see what we can do :wink:


Yash
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 16 replies
  • May 12, 2020

@Boris Borodyansky, Allrighty. :yum:  Good Luck to you all.


@Boris Borodyansky any update on this being available in the SDK? It would be really awesome to have!


Reply