How to make a sidebar plugin, rather than a pop-up plugin
Hey all, I’m working on developing a Miro plugin and would like to find out how I can make my plugin take up the sidebar, rather than opening up as a pop-up. I’ve attached a screenshot of the difference between the sidebar and pop-up plugins which I am referring to (Let me know if there is a correct way to name these!).
The documentation only has openPanel and openModal which do not work for me. Any help would be much appreciated!
Cheers!
Page 1 / 1
@Joseph Low - It looks like Clusterizer is still using SDK 1.0. According to the following documentation, openLeftSidebar has been removed in 2.0:
I would be interested to understand why the app panel doesn’t fit your need and why the leftSideBar is a better fit for your need.
A benefit of Panel over LeftSidebar:
I see . So the only way for me to make my plugin on the left sidebar is to downgrade to SDK V1?
I do prefer the left sidebar as it does not obstruct what is on the user’s board. Our plugin requires a fair bit of back-and-forth interaction between selecting things on the Miro board and interacting with the plugin.
For openPanel, our users tend to accidentally close the plugin (causing the plugin state to reset), and the openModal is not suited for our needs as the user still needs to select items on the board while the plugin is open.
@Joseph Low
I do prefer the left sidebar as it does not obstruct what is on the user’s board.
From my tests, both the SDK 1.0 and 2.0 Sidebar and Panel do temporarily obstruct the board’s content:
Looking at the SDK documentation, you may be able minimize the obstruction by panning/resizing the board using the Viewport property?
For openPanel, our users tend to accidentally close the plugin (causing the plugin state to reset), and the openModal is not suited for our needs as the user still needs to select items on the board while the plugin is open.
Do you have an example of how exactly users are doing this? Are they accidentally clicking on the “X”?
Hello Community
As I see it, the LeftSideBar has the advantage that you could create further widget (like sticky notes) without the disappearing of the panel. This isn’t the case for the openPanel panel in the SDK 2.0.
At least I could not find a way, to implement this behaviour.
I hope this does cater to your use case and answers your query. If not, please provide more details and we’ll be happy to help.
Thanks and have a good one!
Best,
Mira
In my opinion, it would be lovely to be able to keep an app menu open for longer than just one click interaction.
Hey @Tboeh, you’re referring to the primary app bar on the left hand side in Miro, right?
Maybe I misunderstood something there, but what I understood is that if I create a panel and interact with the elements that are in the panel, once the action is finished (like creating a widget on the board) the panel closes. Is there a way to prevent that?
Hey @Tboeh thanks for clarifying!
The app panel for an SDK app doesn’t have to close after an action is taken. Is is possible you’re calling the close modal method somewhere, or have some sort of timeout set on openModal?