Is there a way to restrict the widgets that getWidgetContextMenu applies to? I’m adding a new button, and I’d only like this button to show up for kanban.
Answered
restricting getWidgetContextMenu
Best answer by Max Harper
My recommendation would be to run miro.board.selection.get() right out of the ‘SELECTION-UPDATED’ eventlistener and then apply logic on the array of widget objects returned that will either add your button or not depending on your logic.
psuedo: for doing it to just stickies.
if (widget.type === “STICKER”){ add the button } else { do nothing }
Log in to the community
No account yet? Create an account
Log in with your Miro account Login with Token
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
