Class ScrollPanel


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

A panel that wraps its contents in a scrollable element.

Note that this panel can contain at most one direct 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();
  // Create some long content.
  var vertical = app.createVerticalPanel();
  for (var i = 0; i < 100; ++i) {
    vertical.add(app.createButton("button " + i));
  var scroll = app.createScrollPanel().setPixelSize(100, 100);
  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 ScrollPanel documentation here.

Deprecated methods

Оставить отзыв о...

Текущей странице
Нужна помощь? Обратитесь в службу поддержки.