Nav1 code
Following our suggested style, you will have four google script files related to this on the scripting module and these should be the first four files in your project or near the top. To get them to sort that way we start the names with "!" and in this case "!!" to prioritize higher than others with "!"
|
!!1OnOpen.gs -- We always have our onOpen function on a page by itself at the top of the script files. This will have two related menu items
!!nav1.gs -- this has the script for the worksheet version of the menu
!!nav1s.gs -- this has the javascript used to open the sidebar and the javascript used as server side scripting to create the menu. The menu creation actually happens before the page is loaded into the sidebar. We don't subscrige to the asynchronous loading suggestions on simple pages like this. If you are loading doznes or hundreds of componeents and/or dealing with different contributors, maybe, but not for something this simple.
!!nav1s_H.html - This contains the html for the sidebar.
NOTE: although the script (files) have file extensions of .gs and .html that is misleaading. the extensions will affect how the code is color coded in the console only. The script project does not use file extensions as part of the file naming and referencing system. Thus we could not have nav1s.gs and nav1s.html as it reads that as two files with the name of nav1s. This to me was very odd and took a few minutes to figure out.
Link to File here...
!!nav1.gs -- this has the script for the worksheet version of the menu
!!nav1s.gs -- this has the javascript used to open the sidebar and the javascript used as server side scripting to create the menu. The menu creation actually happens before the page is loaded into the sidebar. We don't subscrige to the asynchronous loading suggestions on simple pages like this. If you are loading doznes or hundreds of componeents and/or dealing with different contributors, maybe, but not for something this simple.
!!nav1s_H.html - This contains the html for the sidebar.
NOTE: although the script (files) have file extensions of .gs and .html that is misleaading. the extensions will affect how the code is color coded in the console only. The script project does not use file extensions as part of the file naming and referencing system. Thus we could not have nav1s.gs and nav1s.html as it reads that as two files with the name of nav1s. This to me was very odd and took a few minutes to figure out.
Link to File here...