Hide
Apps Script

Class SimplePanel

SimplePanel

Deprecated. The UI service was deprecated on December 11, 2014. To create user interfaces, use the HTML service instead.

A panel that can contain only one widget.

This panel is useful for adding styling effects to the child widget. To add more children, make the child of this panel a different panel that can contain more than one child.

Here is an example of how to use this widget:

 

 function doGet() {
   var app = UiApp.createApplication();
   var simple = app.createSimplePanel();
   var flow = app.createFlowPanel();
   flow.add(app.createButton("button 1"));
   flow.add(app.createButton("button 2"));
   simple.add(flow);
   app.add(simple);
   return app;
 }
 

Internally, UiApp widgets are built on top of the Google Web Toolkit, and it can sometimes be helpful to look at the GWT documentation directly. You can find the SimplePanel documentation here.

Deprecated methods