Class Ext.dd.StatusProxy
Package: | Ext.dd |
Class: | StatusProxy |
Extends: | Object |
Defined In: | StatusProxy.js |
A specialized drag proxy that supports a drop status icon,
Ext.Layer styles and auto-repair. This is the
default drag proxy used by all Ext.dd components.
属性
-
方法
-
事件
-
设置选项
公共属性
此类没有公共属性。
公共方法
|
StatusProxy(Object config ) |
StatusProxy |
|
|
getEl() : Ext.Layer |
StatusProxy |
Returns the underlying proxy Ext.Layer |
|
getGhost() : Ext.Element |
StatusProxy |
Returns the ghost element |
|
hide(Boolean clear ) : void |
StatusProxy |
Hides the proxy |
|
repair(Array xy , Function callback , Object scope ) : void |
StatusProxy |
Causes the proxy to return to its position of origin via an animation. Should be called after an
invalid drop operat... |
|
reset(Boolean clearGhost ) : void |
StatusProxy |
Resets the status indicator to the default dropNotAllowed value |
|
setStatus(String cssClass ) : void |
StatusProxy |
Updates the proxy's visual element to indicate the status of whether or not drop is allowed
over the current target e... |
|
show() : void |
StatusProxy |
Displays this proxy |
|
stop() : void |
StatusProxy |
Stops the repair animation if it's currently running |
|
sync() : void |
StatusProxy |
Force the Layer to sync its shadow and shim positions to the element |
|
update(String html ) : void |
StatusProxy |
Updates the contents of the ghost element |
公共事件
此类没有公共事件。
设置选项
|
dropAllowed : String |
StatusProxy |
The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok"). |
|
dropNotAllowed : String |
StatusProxy |
The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop"). |
构造函数
StatusProxy
public function StatusProxy(Object config
)
方法详情
getEl
public function getEl()
This method is defined by StatusProxy.
getGhost
public function getGhost()
Returns the ghost element
This method is defined by StatusProxy.
hide
public function hide(Boolean clear
)
This method is defined by StatusProxy.
repair
public function repair(Array xy
, Function callback
, Object scope
)
Causes the proxy to return to its position of origin via an animation. Should be called after an
invalid drop operation by the item being dragged.
This method is defined by StatusProxy.
reset
public function reset(Boolean clearGhost
)
Resets the status indicator to the default dropNotAllowed value
This method is defined by StatusProxy.
setStatus
public function setStatus(String cssClass
)
Updates the proxy's visual element to indicate the status of whether or not drop is allowed
over the current target element.
This method is defined by StatusProxy.
show
public function show()
This method is defined by StatusProxy.
stop
public function stop()
Stops the repair animation if it's currently running
This method is defined by StatusProxy.
sync
public function sync()
Force the Layer to sync its shadow and shim positions to the element
This method is defined by StatusProxy.
update
public function update(String html
)
Updates the contents of the ghost element
This method is defined by StatusProxy.
设置详情
dropAllowed
dropAllowed : String
The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok").
This config option is defined by StatusProxy.
dropNotAllowed
dropNotAllowed : String
The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop").
This config option is defined by StatusProxy.