Hello,
I am trying to add a custom icon to the menu for a given widget, this is the code for doing so:
function jiraCard() {
miro.board.ui.openModal('modal.html',{ width: 400, height: 600 }).then(() => {
miro.showNotification("modal closed");
});
}
miro.onReady(() => {
miro.initialize({
extensionPoints:{
getWidgetMenuItems: (widgets) => {
return{
tooltip: 'Estimate',
svgIcon: '<circle cx="12" cy="12" r="9" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="2"/>',
onClick: async (widgets) => {
jiraCard()
}
}
}
}
})
})
The problem is that this code makes all the default widgets disappear, so that the only button the menu is the custom widget that I am defining. Is there anyway to prevent this problem?