Specify parameters for menu functions
This is a snippet in the Google Apps Script for adding a menu in Google Docs/Forms/Sheets. As stated in the Menu#addItem
method it calls the menuItem2
function, but the snippet didn’t include a sample on how to call the addItem
when you want to add parameters in function call, or is this not possible?