Is it possible to open a sidebar without having to open a menu and clicking an item? I mean can we just add a menu that acts like a button and opens the sidebar when clicked?
The shortest way I know is to add a single item to the menu:
function onOpen(e) {
SpreadsheetApp.getUi()
.createAddonMenu()
.addItem('Show', 'showSidebar')
.addToUi();
}
but this are two clicks. I'd like to open it with only a single click on the menu itself.