This file contains hidden or 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
| // onEdit is a simple trigger | |
| // https://developers.google.com/apps-script/guides/triggers | |
| function onEdit(e) { | |
| // Use Logger to log values, e.g., Logger.log(e) | |
| // https://developers.google.com/apps-script/guides/logging | |
| if ('' === e.value ) { // If the cell was cleared out, don't do anything. | |
| return false; | |
| } |
This file contains hidden or 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
| // Runs when the spreadsheet is open. | |
| function onOpen() { | |
| const spreadsheet = SpreadsheetApp.getActive(); | |
| // Add a menu item, a button and a callback function. | |
| const menuItems = [ | |
| {name: 'Generate JSON', functionName: 'generateSchemaJSON_'} | |
| ]; | |
| spreadsheet.addMenu('SCHEMA', menuItems); | |
| } |
OlderNewer