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.
Answer
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 }
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

