Documentation

Reference
qx:slideBar (qx.ui.container.SlideBar)

Container, which provides scrolling in one dimension (vertical or horizontal).

Example

Here is a little example of how to use the widget.

  // create slide bar container
  slideBar = new qx.ui.container.SlideBar().set({
    width: 300
  });

  // set layout
  slideBar.setLayout(new qx.ui.layout.HBox());

  // add some widgets
  for (var i=0; i<10; i++)
  {
    slideBar.add((new qx.ui.core.Widget()).set({
      backgroundColor : (i % 2 == 0) ? "red" : "blue",
      width : 60
    }));
  }

  this.getRoot().add(slideBar);

This example creates a SlideBar and add some widgets with alternating background colors. Since the content is larger than the container, two scroll buttons at the left and the right edge are shown.

External Documentation

Documentation of this widget in the qooxdoo wiki.

LGPL, EPL © 2008 QxTransformer | Siarhei Barysiuk & Christian Boulanger.
Site design and illustrations by Siarhei Barysiuk. | Icons by Dry Icons.

qooxdoo