ui/menu.js
/**
 * Add custom menu to a Google app
 */
Add custom menu to a Google app
Add custom menu to a Google app
function addMenu(){
    SpreadsheetApp.getUi() 
      .createMenu('Custom Menu')
      .addItem('First item', 'menuItem1')
      .addToUi();
}
function addMenu ( ) { SpreadsheetApp . getUi ( ) . createMenu ( 'Custom Menu' ) . addItem ( 'First item' , 'menuItem1' ) . addToUi ( ) ; }
Add custom menu to a Google app
Add custom menu to a Google app
// Or DocumentApp, SlidesApp, or FormApp.