Click here to see your recently viewed pages and most viewed pages.
Apps Script

Class CheckBox


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

A standard check box widget.

Here is an example of how to use this widget:


 function doGet() {
   var app = UiApp.createApplication();
   var handler = app.createServerHandler("change");
   var check = app.createCheckBox("click me").addValueChangeHandler(handler);
   return app;

 function change() {
   var app = UiApp.getActiveApplication();
   app.add(app.createLabel("The value changed!"));
   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 CheckBox documentation here.

Deprecated methods