gantt_chart.js
/**
 * Adds a custom menu to the active spreadsheet, containing a single menu item
 * for invoking the readRows() function specified above.
 * The onOpen() function, when defined, is automatically invoked whenever the
 * spreadsheet is opened.
 * For more information on using the Spreadsheet API, see
 * https://developers.google.com/apps-script/service_spreadsheet
 */
Adds a custom menu to the active spreadsheet, containing a single menu item
for invoking the readRows() function specified above.
The onOpen() function, when defined, is automatically invoked whenever the
spreadsheet is opened.
Adds a custom menu to the active spreadsheet containing a single menu item for invoking the readRows () function specified above . The onOpen () function when defined is automatically invoked whenever the spreadsheet is opened .
function onOpen() {
  var sheet = SpreadsheetApp.getActiveSpreadsheet();
  var entries = [{
    name : "日、曜日を設定",
    functionName : "setDate"
  },
  {
    name : "休日列を塗りつぶす",
    functionName : "setHolidayBGColor"
  },
  {
    name : "休日列を非表示にする",
    functionName : "hideHolidayColumn"
  },
  {
    name : "休日列を表示する",
    functionName : "showHolidayColumn"
  }
  ];
  sheet.addMenu("関数", entries);
}
function onOpen ( ) { var sheet = SpreadsheetApp . getActiveSpreadsheet ( ) ; var entries = [ { name : "日、曜日を設定", functionName : "setDate" } , { name : "休日列を塗りつぶす", functionName : "setHolidayBGColor" } , { name : "休日列を非表示にする", functionName : "hideHolidayColumn" } , { name : "休日列を表示する", functionName : "showHolidayColumn" } ] ; sheet . addMenu ( "関数", en t ies); }
Adds a custom menu to the active spreadsheet, containing a single menu item
 for invoking the readRows() function specified above.
Adds a custom menu to the active spreadsheet containing a single menu item for invoking the readRows () function specified above .