PDA

View Full Version : [CLOSED] Difference between DropZone and DropTarget



jchau
Jun 03, 2013, 6:24 PM
I read the docs on ExtJS, but still confused as to the difference between DropZone vs DropTarget. In your drag drop examples, sometimes you use DropTarget, sometimes you use DropZone. Can you elaborate more on when to use which?

Baidaly
Jun 03, 2013, 10:42 PM
Hello!

Please, read the following:
http://stackoverflow.com/questions/3880678/
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.dd.DropZone
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.dd.DropTarget

Briefly, DropTarget should be used if you have only one drop target. DropZone is an extended class that should be used if you have many child drop targets with different behavior.