Documentation

Reference
qx:dateChooser (qx.ui.control.DateChooser)

A date chooser is a small calendar including a navigation bar to switch the shown month. It includes a column for the calendar week and shows one month. Selecting a date is as easy as clicking on it.

To be conform with all form widgets, the qx.ui.form.IFormElement interface is implemented.

The following example creates and adds a date chooser to the root element. A listener alerts the user if a new date is selected.

var chooser = new qx.ui.control.DateChooser();
this.getRoot().add(chooser, { left : 20, top: 20});

chooser.addListener("changeValue", function(e) {
  alert(e.getData());
});

Additionally to a selection event a execute event is available which is fired by doubleclick or taping the space / enter key. With this event you can for example save the selection and close the date chooser.

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

qooxdoo