| Defined In: | TreeDropZone.js |
| Class: | Ext.tree.TreeDropZone |
| Extends: | Ext.dd.DropZone |
| 配置项 | 定义者 | |
|---|---|---|
|
allowParentInsert
: Boolean
Allow inserting a dragged node betw...
Allow inserting a dragged node between an expanded parent node and its first child that will become a
sibling of the parent when dropped (defaults to false)
|
TreeDropZone | |
|
allowContainerDrop
: String
True if drops on the tree container...
True if drops on the tree container (outside of a specific tree node) are allowed (defaults to false)
|
TreeDropZone | |
|
appendOnly
: String
True if the tree should only allow ...
True if the tree should only allow append drops (use for trees which are sorted, defaults to false)
|
TreeDropZone | |
|
ddGroup
: String
该对象隶属于组的名称。如果已指定组,那该对象只会与同组下其他拖放成员相...
该对象隶属于组的名称。如果已指定组,那该对象只会与同组下其他拖放成员相交互(默认为“TreeDD”)。
|
TreeDropZone | |
|
expandDelay
: String
在拖动到一个可落下的节点时,到目标上方,距离展开树节点 等待的毫秒数。...
在拖动到一个可落下的节点时,到目标上方,距离展开树节点 等待的毫秒数。(默认为1000)
|
TreeDropZone | |
|
overClass
: String
当拖动源到达落下目标上方时的CSS class
当拖动源到达落下目标上方时的CSS class
|
DropTarget | |
|
dropAllowed
: String
当可以被落下时拖动源的样式(默认为"x-dd-drop-ok")。
当可以被落下时拖动源的样式(默认为"x-dd-drop-ok")。
|
DropTarget | |
|
dropNotAllowed
: String
当不可以被落下时拖动源的样式(默认为"x-dd-drop-nodrop...
当不可以被落下时拖动源的样式(默认为"x-dd-drop-nodrop")。
|
DropTarget | |
| 方法 | 定义者 | |
|---|---|---|
TreeDropZone
(
String/HTMLElement/Element tree,
Object config
)
: Ext.tree.TreeDropZone
构造器
构造器
参数项:
|
TreeDropZone | |
DropZone
(
Mixed el,
Object config
)
: Ext.dd.DropZone
构造器
构造器
参数项:
|
DropZone | |
getTargetFromEvent
(
Event e
)
: Object
返回一个自定义数据对象,与事件对象的那个DOM节点关联。
默认地...
返回一个自定义数据对象,与事件对象的那个DOM节点关联。
默认地,该方法会在事件目标Ext.dd.Registry中查找对象,
但是你亦可以根据自身的需求,重写该方法。
参数项:
|
DropZone | |
onNodeEnter
(
Object nodeData,
Ext.dd.DragSource source,
Event e,
Object data
)
内部调用。当DropZone确定有一个Ext.dd.DragSou...
内部调用。当DropZone确定有一个Ext.dd.DragSource,
已经进入一个已登记的落下节点(drop node)的范围内,就会调用。
该方法没有默认的实现。如需为某些指定的节点处理,则要重写该方法。
参数项:
|
DropZone | |
onNodeOver
(
Object nodeData,
Ext.dd.DragSource source,
Event e,
Object data
)
: String
内部调用。当DropZone确定有一个Ext.dd.DragSou...
内部调用。当DropZone确定有一个Ext.dd.DragSource,
已经位于一个已登记的落下节点(drop node)的上方时,就会调用。
默认的实现是返回this.dropAllowed。因此应该重写它以便提供合适的反馈。
参数项:
|
DropZone | |
onNodeOut
(
Object nodeData,
Ext.dd.DragSource source,
Event e,
Object data
)
内部调用。当DropZone确定有一个{@link Ext.dd....
内部调用。当DropZone确定有一个{@link Ext.dd.DragSource},
已经离开一个已登记的落下节点(drop node)的范围内,就会调用。
该方法没有默认的实现。如需为某些指定的节点处理,则要重写该方法。
参数项:
|
DropZone | |
onNodeDrop
(
Object nodeData,
Ext.dd.DragSource source,
Event e,
Object data
)
: Boolean
内部调用。当DropZone确定有一个Ext.dd.DragSou...
内部调用。当DropZone确定有一个Ext.dd.DragSource,
已经在一个已登记的落下节点(drop node)落下的时候,就会调用。
默认的方法返回false,应提供一个合适的实现来处理落下的事件,重写该方法,
并返回true值,说明拖放行为有效,拖动源的修复动作便不会进行。
参数项:
|
DropZone | |
onContainerOver
(
Ext.dd.DragSource source,
Event e,
Object data
)
: String
内部调用。当DrapZone发现有一个Ext.dd.DragSou...
内部调用。当DrapZone发现有一个Ext.dd.DragSource正处于其上方时,但是没有放下任何落下的节点时调用。
默认的实现是返回this.dropNotAllowed,如需提供一些合适的反馈,应重写该函数。
参数项:
|
DropZone | |
onContainerDrop
(
Ext.dd.DragSource source,
Event e,
Object data
)
: Boolean
内部调用。当DrapZone确定{@link Ext.dd.Dra...
内部调用。当DrapZone确定{@link Ext.dd.DragSource}落下的动作已经执行,但是没有放下任何落下的节点时调用。
欲将DropZone本身也可接收落下的行为,应提供一个合适的实现来处理落下的事件,重写该方法,并返回true值,
说明拖放行为有效,拖动源的修复动作便不会进行。默认的实现返回false。
参数项:
|
DropZone | |
notifyEnter
(
Ext.dd.DragSource source,
Event e,
Object data
)
: String
当源Ext.dd.DragSource进入到目标的范围内,它执行...
当源Ext.dd.DragSource进入到目标的范围内,它执行通知落下目标的那个函数。
默认的实现是,如存在overClass(或其它)的样式,将其加入到落下元素(drop element),并返回dropAllowed配置的值。
如需对落下验证(drop validation)的话可重写该方法。
参数项:
|
DropTarget | |
notifyOver
(
Ext.dd.DragSource source,
Event e,
Object data
)
: String
当源{@link Ext.dd.DragSource}进入到目标的...
当源{@link Ext.dd.DragSource}进入到目标的范围内,每一下移动鼠标,它不断执行通知落下目标的那个函数。
默认的实现是返回dropAllowed配置值而已
参数项:
|
DropTarget | |
notifyOut
(
Ext.dd.DragSource dd,
Event e,
Object data
)
.
当源Ext.dd.DragSource移出落下目标的范围后,...
.
当源Ext.dd.DragSource移出落下目标的范围后,它执行通知落下目标的那个函数。
默认的实现仅是移除由overClass(或其它)指定的CSS class。
参数项:
|
DropTarget | |
notifyDrop
(
Ext.dd.DragSource source,
Event e,
Object data
)
: Boolean
当源{@link Ext.dd.DragSource}在落下目标身...
当源{@link Ext.dd.DragSource}在落下目标身上完成落下动作后,它执行通知落下目标的那个函数。
该方法没有默认的实现并返回false,所以你必须提供处理落下事件的实现并返回true,才能修复拖动源没有运行的动作。
参数项:
|
DropTarget | |
DropTarget
(
Mixed el,
Object config
)
: Ext.dd.DropTarget
构造器
构造器
参数项:
|
DropTarget | |