Hi Marco,

On Monday 14 November 2011 23:46:26 Marco Pompili wrote:
> So you are saying to override _createContainerElement of qx.ui.core.Widget
> and _createDomElement of qx.html.Element.
> 
> >From what I've seen _createContainerElement returns an qx.html.Element and
> 
> _createDomElement returns a DOM Element using qx.bom.Element.create.
> 
> >From what I've understood from your suggestion I've done this. I've
> 
> overridden the _createContainerElement of the widget that is loading the
> Highchart object. So now it returns a highcharts.bom.Element instead, that
> overrides _createDomElement like this:
> 
> _createDomElement : function() {
> return qx.bom.Element.create("div", { id : "hc" });
> }
> 
> Where hc is the div id that highcharts should use.
> 
> This didn't solve the problem, highcharts cannot find the div. I don't know
> if I've understood what you suggested, guess not.
I though of to override the "_createContainerElement" method to be able to 
create a custom instance of "qx.html.Element". This enables you to create a 
custom "_createDomElement" method where you directly create an instance of 
highcharts.

--snip--
_createDomElement: function()
{
  var div = qx.bom.Element.create("div", { id : "hc" });
  var highCharts = new highCharts(div);

  return div;
}
--snip--

This above is pseudo-code, don't know how to create a highcharts instance. The 
important thing is that highcharts has to be available at that time.

Regards,
  Alex

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to