I created a library that has a specific function that creates new spreadsheet menus (using addMenu). The parameters of my menu must call other functions in my library in order to do something.
// Bare Minimum Deployment on a blank spreadsheet with // my library registered (called myLibraryName for this example). function onOpen() { myLibraryName.setMenus(); // creating new drop-down menus } function onEdit(event) { myLibraryName.doEvent(event); // sending the onEdit event to a function in my library. }
Now the problem is that when I select the menu option, the google script application gives me an error message like
Script myMenuFunction not found
So, I tried to add a prefix to my menu item
menuEntries.push({name: "About", functionName: "myLibraryName.myMenuFunction"});
But it also does not work.
So, I am asking for suggestions on how to create a library that can create menus related to functions within the library.
source share