Using the miro javascript sdk, I have built a plugin to create shape groups based on a given input. Now I would also like to create the links between shapes programmatically. Take a look at the picture below, please.
The links were created manually to show what is the intended result.
Since I have reference to the widgets it should somehow be possible to create links between them. But I did not find a corresponding method.
Ideas how to achieve that?
Thanks, Markus
Page 1 / 1
Hi Markus,
To create links you can use the same method miro.board.widgets.create() => Promise<SDK.IWidgett]>. Please see an example below:
In order to create a LINE widget that connects two other widgets in the board you would have to provide the ids of the widgets it connects as the properties startWidgetId and endWidgetId. For example, here I create a LINE widget that connects two STICKER widgets in my board: