| Defined In: | DropTarget.js |
| Class: | Ext.dd.DropTarget |
| Extends: | Ext.dd.DDTarget. |
| 方法 | 定义者 | |
|---|---|---|
DropTarget
(
Mixed el,
Object config
)
: Ext.dd.DropTarget
构造器
构造器
参数项:
|
DropTarget | |
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 | |