Class DateBox

DateBox

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

A text box that shows a DatePicker when the user focuses on it.

Here is an example of how to use this widget:

function doGet() {
  var app = UiApp.createApplication();
  var handler = app.createServerHandler("change");
  var dateBox = app.createDateBox().addValueChangeHandler(handler).setId("datebox");
  app.add(dateBox);
  return app;
}

function change(eventInfo) {
  var app = UiApp.getActiveApplication();
  app.add(app.createLabel("The value of the date box changed to " +
      eventInfo.parameter.datebox));
   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 DateBox documentation here.

Deprecated methods





























다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.