Skip to main content

Detect Pre-selected widgets when plug-in loads

  • January 17, 2022
  • 6 replies
  • 78 views

gavin032
Forum|alt.badge.img+1

Hello!

I am developing a plugin that can be opened from the Miro board. When my plug-in starts, it doesn’t check if widgets are already selected. I need the plugin to be able to detect what is currently selected when it is opened in order to improve the user experience.

Has anyone figured out how to do this?

Here is a video demo of the issue:

 

6 replies

Marijn Huizendveld
Forum|alt.badge.img+2

Not sure if you were able to find this but it’s documented in the SDK page: https://developers.miro.com/docs/interface-iboardselectioncommands#section-get

When running v1:
miro.board.selection.get()


When running v2

miro.v1.board.selection.get()

 


Good luck :-)


gavin032
Forum|alt.badge.img+1
  • Author
  • Active Contributor
  • 21 replies
  • January 30, 2022

@Marijn Huizendveld worked a treat!

thank you.


Marijn Huizendveld
Forum|alt.badge.img+2

Happy to hear it worked :-) The video triggered my curiosity, I’m keen to hear what you’re building :-)

Have a nice day!


gavin032
Forum|alt.badge.img+1
  • Author
  • Active Contributor
  • 21 replies
  • February 1, 2022

Hi @Marijn Huizendveld . An app for downloading Mindmap data in a heirarchy format. Details here


Marijn Huizendveld
Forum|alt.badge.img+2

Cool! Drop a line here when you launched, curious to try it out.

What type of use-case do you aim to satisfy? What is the process this plugin would play a role in?


gavin032
Forum|alt.badge.img+1
  • Author
  • Active Contributor
  • 21 replies
  • February 17, 2022

@Marijn Huizendveld got released today.

https://miro.com/marketplace/mindmapdownloader/?backUrl=%2Fmarketplace%2F

Processes seem to be quite varied so far but keen to expand the app to support multiple use-cases.