1
2
3
4
5
6
7
8
9
10
11
12
13
14
| /**
* Adds a custom menu to the active spreadsheet, containing a single menu item
* for invoking the getLanguages() function specified above.
* The onOpen() function, when defined, is automatically invoked whenever the
* spreadsheet is opened.
*/
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [{
name : "Get languages",
functionName: "getLanguages"
}];
sheet.addMenu("Predictions API", menuEntries);
}
|