Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
There are three ways to create and display a user interface (UI) in Google Script. The first way is in a spreadsheet as a pop-up window; the second, as a web page; and the third as a gadget in a Google sites page.
As you work through this chapter, please note that some of the code in each type of UI is the same and will only be described once as it is first introduced. It would be a good idea to go through all the different UI types to avoid confusion about a certain topic and to gain an understanding of when and why a certain UI type would work better for your application.
Now that you know your way around the Editor, it is time to write your first script. Keep in mind that all Google Scripts are written entirely in JavaScript and there is no HTML needed to generate the UI. The first type of UI is called “Integrated” because it is going to display as a pop-up window in our spreadsheet. The term “integrated” comes from requiring a spreadsheet to display the UI, but this does not mean that any certain type of UI is more or less integrated than another. It is simply to give you a reference of what we are discussing because the code to display each type differs slightly.