Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9798

How to test apps script addon

$
0
0

I have created an addon using this guide.

code.gs

function onOpen() {   SpreadsheetApp.getUi().createAddonMenu()   .addItem('Start', 'showSidebar');}function showSidebar() {  const ui = HtmlService.createHtmlOutputFromFile('index').setTitle('Sample');  SpreadsheetApp.getUi().showSidebar(ui);}

index.html

<!DOCTYPE html><html><head><base target="_top"></head><body><h1>Works</h1></body></html>

It says "If you switch back to document and reload you will see a submenu under Add-ons menu.

But I could not find my addon submenu, I think the quickstart guide is outdated.

Please guide me, How to test the addon on google sheet.


Viewing all articles
Browse latest Browse all 9798

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>