Hey,
thanks for sharing that. :)
The playground console can not work with console.log because thats a native 
object. It only works if you use the qooxdoo logging system like this.debug e.g.
Regards,
Martin


Am 21.05.2011 um 11:24 schrieb Marc:

> Hi,
> 
> I just want to inform that i found a little smoother solution for this
> requiremen ;)
> 
> You don't need a listener for the widget to store Data.
> 
> http://demo.qooxdoo.org/devel/playground/#%7B%22code%22%3A%20%22var%2520container%2520%253D%2520new%2520qx.ui.container.Composite%28new%2520qx.ui.layout.Grid%280%252C%25200%29%29.set%28%257B%250A%2520%2520decorator%253A%2520%2522main%2522%252C%250A%2520%2520backgroundColor%253A%2520%2522yellow%2522%252C%250A%2520%2520margin%253A5%252C%250A%2520%2520allowGrowX%253A%2520false%252C%250A%2520%2520allowGrowY%253A%2520false%250A%257D%29%253B%250A%250A%250Acontainer.setDroppable%28true%29%253B%250A%250Avar%2520w1%2520%253D%2520new%2520qx.ui.core.Widget%28%29.set%28%257B%250A%2520%2520decorator%253A%2520%2522main%2522%252C%250A%2520%2520backgroundColor%253A%2520%2522green%2522%250A%257D%29%253B%250A%250Aw1.setDraggable%28true%29%253B%250A%250Aw1.addListener%28%27dragstart%27%252Cfunction%28e%29%257B%250A%2520%2520e.addAction%28%2522move%2522%29%253B%250A%2520%2520%250A%257D%29%253B%250A%250A%250Acontainer.add%28w1%252C%2520%257Brow%253A%25200%252C%2520column%253A%25200%257D%29%253B%250A%250Avar%2520w2%2520%253D%2520new%2520qx.ui.core.Widget%28%29.set%28%257B%250A%2520%2520decorator%253A%2520%2522main%2522%252C%250A%2520%2520backgroundColor%253A%2520%2522blue%2522%250A%257D%29%253B%250A%2520%2520%2520%2520%250Aw2.setDraggable%28true%29%253B%250A%2520%2520%2520%2520%250Aw2.addListener%28%27dragstart%27%252Cfunction%28e%29%257B%250A%2520%2520e.addAction%28%2522move%2522%29%253B%250A%2520%2520%250A%257D%29%253B%250A%250Acontainer.add%28w2%252C%2520%257Brow%253A%25201%252C%2520column%253A%25200%257D%29%253B%250A%250Avar%2520w3%2520%253D%2520new%2520qx.ui.core.Widget%28%29.set%28%257B%250A%2520%2520decorator%253A%2520%2522main%2522%252C%250A%2520%2520backgroundColor%253A%2520%2522red%2522%250A%257D%29%253B%250A%2520%2520%2520%2520%250Aw3.setDraggable%28true%29%253B%250A%2520%2520%2520%2520%250Aw3.addListener%28%27dragstart%27%252Cfunction%28e%29%257B%250A%2520%2520e.addAction%28%2522move%2522%29%253B%250A%2520%2520%250A%257D%29%253B%250A%250Acontainer.add%28w3%252C%2520%257Brow%253A%25202%252C%2520column%253A%25200%257D%29%253B%250A%250Acontainer.addListener%28%27drop%27%252Cfunction%28e%29%257B%250A%2520%2520%250A%2520%2520%2509console.log%28%2522source%2520position%253A%2522%29%253B%250A%2509%2509console.log%28e.getRelatedTarget%28%29.getLayoutProperties%28%29%29%253B%250A%2509%2509console.log%28%2522target%2520posiition%253A%2522%29%253B%250A%2509%2509console.log%28e.getOriginalTarget%28%29.getLayoutProperties%28%29%29%253B%250A%257D%29%253B%250A%250Athis.getRoot%28%29.add%28container%29%253B%22%7D
> Example 
> 
> Btw... in the playground the console seems not working...?
> 
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Grid-Drag-and-Drop-tp6379636p6389055.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its 
> next-generation tools to help Windows* and Linux* C/C++ and Fortran 
> developers boost performance applications - including clusters. 
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to