Class Ext.dd.DragZone
| Package: | Ext.dd |
| Class: | DragZone |
| Extends: | Ext.dd.Source |
| Defined In: | DragZone.js |
This class provides a container DD instance that proxies for multiple child node sources.
By default, this class requires that draggable child nodes are registered with
Ext.dd.Registry.
Properties
-
Methods
-
Events
-
Config Options
Public Properties
This class has no public properties.
Public Methods
| |
DragZone(String/HTMLElement/Element el, Object config) |
DragZone |
|
| |
afterRepair() : void |
DragZone |
| Called after a repair of an invalid drop. By default, highlights this.dragData.ddel |
| |
getDragData(EventObject e) : Object |
DragZone |
| Called when a mousedown occurs in this container. Looks in Ext.dd.Registry
for a valid target to drag based on the mo... |
| |
getRepairXY(EventObject e) : Array |
DragZone |
| Called before a repair of an invalid drop to get the XY to animate to. By default returns
the XY of this.dragData.ddel |
| |
onInitDrag(EventObject e) : Boolean |
DragZone |
| Called once drag threshold has been reached to initialize the proxy element. By default, it clones the
this.dragData.... |
Public Events
This class has no public events.
Config Options
| |
containerScroll : Boolean |
DragZone |
| True to register this container with the Scrollmanager for auto scrolling during drag operations. |
Constructor Details
DragZone
public function DragZone(String/HTMLElement/Element el, Object config)
Parameters:
el : String/HTMLElement/ElementThe container element
config : Object
Method Details
afterRepair
public function afterRepair()
Called after a repair of an invalid drop. By default, highlights this.dragData.ddel
This method is defined by DragZone.
getDragData
public function getDragData(EventObject e)
Called when a mousedown occurs in this container. Looks in
Ext.dd.Registry
for a valid target to drag based on the mouse down. Override this method
to provide your own lookup logic (e.g. finding a child by class name). Make sure your returned
object has a "ddel" attribute (with an HTML Element) for other functions to work.
Parameters:
e : EventObjectThe mouse down event
Returns:
This method is defined by DragZone.
getRepairXY
public function getRepairXY(EventObject e)
Called before a repair of an invalid drop to get the XY to animate to. By default returns
the XY of this.dragData.ddel
Parameters:
e : EventObjectThe mouse up event
Returns:
This method is defined by DragZone.
onInitDrag
public function onInitDrag(EventObject e)
Called once drag threshold has been reached to initialize the proxy element. By default, it clones the
this.dragData.ddel
Parameters:
e : EventObjectThe current event
Returns:
This method is defined by DragZone.
Config Details
containerScroll
containerScroll : Boolean
True to register this container with the Scrollmanager for auto scrolling during drag operations.
This config option is defined by DragZone.
yui-ext - Copyright © 2006 Jack Slocum. |
Yahoo! UI - Copyright © 2006 Yahoo! Inc.
All rights reserved.