Documentation

Reference
qx:spacer (qx.ui.core.Spacer)

A Spacer is a “virtual” widget, which can be placed into any layout and takes the space a normal widget of the same size would take.

Spacers are invisible and very light weight because they don’t require any DOM modifications.

Example

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

  var container = new qx.ui.container.Composite(new qx.ui.layout.HBox());
  container.add(new qx.ui.core.Widget());
  conainer.add(new qx.ui.core.Spacer(50));
  container.add(new qx.ui.core.Widget());

This example places two widgets and a spacer into a container with a horizontal box layout. In this scenario the spacer creates an empty area of 50 pixel width between the two widgets.

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