Skip to content

Instantly share code, notes, and snippets.

@pstjvn
Created July 19, 2014 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pstjvn/37fef6cb284fa07642fa to your computer and use it in GitHub Desktop.
Save pstjvn/37fef6cb284fa07642fa to your computer and use it in GitHub Desktop.
GAS issue
function onOpen() {
var ui = SpreadsheetApp.getUi();
var utilities = ui.createMenu('Utilities');
utilities
.addItem('Open', 'openDialog')
.addToUi();
}
function openDialog() {
var template = HtmlService.createHtmlOutputFromFile('index');
SpreadsheetApp.getUi().showModalDialog(template, 'Dialog');
}
function doGet() {
return HtmlService.createHtmlOutputFromFile('index');
}
function doSomething() {
Logger.log('Received object');
}
<script>
google.script.run.doSomething();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment