January 2nd, 2011
I've been working on an ExtJS project, and just recently discovered something else. I wanted to create a DropTarget inside a BoxComponent, however in my notifyDrop() function I couldn't figure out how to get a reference to the BoxComponent. There was no clear way in the API documentation or on the Sencha forums. I did notice there was a reference to the DOM HTML element for the BoxComponent. Below was how I got the BoxComponent reference when creating my DropTarget
notifyDrop:function(dd, e, data){ var myBoxComp = Ext.getCmp(Ext.get(this.el).id); }
Comments