On 18.03.2014 15:58, Micha wrote: > Hi, > > On 18.03.2014 15:44, Daniel Wagner wrote: >> Hi, >> >> you should definitely add a widget so that the layout system will >> continue to work. You could modify a plain core.widget but I'd rather >> create a custom widget so that the external component and any resources >> it might depend on are nicely encapsulated. >> > > thanks, yes, I do it this way, it works, but I'm not sure if that's the > best way to integrate it: > > # var w = new qx.ui.core.Widget(); > # w.addListenerOnce("appear", function() { > # > # var box = w.getContentElement(); > # // doesn't work: > # // qx.bom.element.Attribute.set(box,'id', 'external-container'); > # > # var el = box.getDomElement(); > # qx.bom.element.Attribute.set(el, 'id', 'external-container'); > # });
you can use the content element's setAttribute method. This is preferable to working directly on the DOM element since it uses the HTML queue so it can save some rendering time in large applications. > > > Customwidget comes later... When you do get around to it, overriding _createContentElement should be a good place to start. > > cheers, > Michael > Regards, Daniel ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel