Created
February 13, 2019 21:00
-
-
Save kurtkaiser/981ebfd23554b9d50d38a2df0fd0e489 to your computer and use it in GitHub Desktop.
This code creates a sidebar in Google Apps Script, I wrote it as part of a tutorial video I filmed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kurt Kaiser | |
// kurtkaiser.us | |
// Pretty Sidebar | |
// All rights reserved, 2019 | |
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu('Tadah') | |
.addItem('Show Sidebar', 'showSidebar') | |
.addToUi(); | |
} | |
function showSidebar(){ | |
var html = HtmlService.createHtmlOutputFromFile('Sidebar'); | |
SpreadsheetApp.getUi().showSidebar(html); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment