-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidebar.gs
34 lines (26 loc) · 933 Bytes
/
sidebar.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function onOpen() {
var menu = SpreadsheetApp.getUi().createMenu('Extreme Planning');
var item = menu.addItem('Run Template', 'showTemplateSidebar');
item.addItem('Feedback', 'showFeedbackSidebar');
item.addItem('Sync', 'showSyncSidebar');
item.addItem('Analyze', 'showAnalyzeSidebar');
item.addSeparator();
item.addItem('Setup & Configure', 'showConfigSidebar');
item.addSeparator();
item.addItem('Help', 'showHelpSidebar');
item.addToUi();
}
function showTemplateSidebar() {
var html = HtmlService.createHtmlOutputFromFile('createEventsUI').setTitle('Run Template').setWidth(300);
SpreadsheetApp.getUi().showSidebar(html);
}
function showFeedbackSidebar() {
}
function showSyncSidebar() {
var html = HtmlService.createHtmlOutputFromFile('syncUI').setTitle('Sync').setWidth(300);
SpreadsheetApp.getUi().showSidebar(html);
}
function showAnalyzeSidebar() {
}
function showConfigSidebar() {
}