Hi, Fabian!
That looks great! Seems to be what I was looking for.
Thanks a lot !
Alexei
> >
> > Is there any way to access the qooxdoo widget somehow except the direct
> > approach (by name in the code)?
> >
> > Here the example:
> > // Application main function
> > qx.Proto.main = function(e) {
> > var layout = new qx.ui.core.VerticalBoxLayout();
> > layout.addToDocument();
> >
> > var btnTest = new qx.ui.form.Button("Test");
> > layout.add(btnTest);
> > }
> >
> > Question:
> > Is there some call like this:
> > qx.core.some_ns.someGlobalCall()....
> > to access layout and btnTest?
>
> I have written a simple widget registry mixin for the api viewer. this
> mixin adds an 'id' property to each widget and a 'getWidgetById' method.
>
> qx.Class.include(qx.ui.core.Widget, apiviewer.MWidgetRegistry);
> ...
>
> var btn = new qx.ui.form.Button("OK");
> btn.setId("okBtn");
>
> ...
>
> var btn = this.getWidgetById("okBtn");
> // or
> var btn = apiviewer.MWidgetRegistry.getWidgetById("okBtn");
>
> I think, it would be easy to implement something like this for your 0.6
> app.
>
> Best Fabian
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel