Detect Pre-selected widgets when plug-in loads

  • 17 January 2022
  • 6 replies
  • 68 views

Userlevel 2
Badge +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

Userlevel 2
Badge +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 :-)

Userlevel 2
Badge +1

@Marijn Huizendveld worked a treat!

thank you.

Userlevel 2
Badge +2

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

Have a nice day!

Userlevel 2
Badge +1

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

Userlevel 2
Badge +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?

Userlevel 2
Badge +1

@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.

Reply