I prefer to do it my way similar to what I've been doing in the past in my
C# web projects. Those codes are actually built in my developed library on
top of qooxdoo so there is actually less code. For example, the code below:
export class EntryCourse extends ui.EntryNav {
construct
Tom Saddul wrote
> This is what I do in TypeScript (qx-typed):
>
> I created a map of getters and setters taking advantage of closure
> technique like this:
>
> // A function or method to add a SelectBox control
> this.addMap(name, control, util.SqlDataType.UByte,
>
This is what I do in TypeScript (qx-typed):
I created a map of getters and setters taking advantage of closure technique
like this:
// A function or method to add a SelectBox control
this.addMap(name, control, util.SqlDataType.UByte,
(s) => ui.setSelectedI
Ok, got it now:
var comboModel = qx.data.marshal.Json.createModel([]);
var form = new qx.ui.form.Form();
var textf = new qx.ui.form.TextField();
var combo = new qx.ui.form.ComboBox();
var comboCtrl = new qx.data.controller.List(null, combo);
comboCtrl.setModel(comboModel);
form.add(textf, "Text",
When I run the following code in the console:
// Create a model
var model = genpres.lib.model.DatabaseConnection.create();
// Create a window
var wnd = new qx.ui.window.Window();
wnd.setLayout(new qx.ui.layout.VBox(10));
// Create the form containing a selectbox called PDMStype
var form = new genp